EE 103 HW 2 Spring 2010 Prof. S.E. Jacobsen
1
EE103 Applied Numerical Computing, Spring 2010
HW 2
Due: 4/19/2010 (Beginning of Lecture)
Your HW answers must contain your ID, Last Name, First Name, and the number of the
Discussion Section in which you are enrolled (by the way, you’re free to attend other
Sections as well).
Class:
The purpose of HWs is absolutely NOT for the mere assignment of grades.
The
purpose of HW assignments is to engage the student in the process of learning the material
of the course and the material that the instructor believes to be instructive.
As such, your
work must be your own and reflect your effort in the learning process.
As a result, you are not to consult the notes, HWs, HW solutions, etc., of other courses or
past offerings of this course.
Of course, you may discuss the material of this course with
other students of this class; however, your work must be your own.
A violation of the latter
may be considered to be an act of academic dishonesty.
------------------------------------------------------------------------------------------------------------------
All work that involves Matlab programming and output must be submitted, hard copy,
using Matlab’s “diary” command (e.g., “diary myproblem.txt”).
Matlab’s edit, or any
other text editor, can be used to include your name, ID, Problem number, comments, etc.
Problem 1:
We’re interested in constructing “finite-precision machines” other than a binary
machine.
In particular, of
concern are the two “machines”
8
(, ) (
8
, )
nn
and
10
1
0
.
(a
) For the
8
8
machine, how many bits must the mantissa contain in order to
achieve the relative error accuracy that an IEEE single precision machine possesses?