Homework 1
Due: Friday, September 7, 2001
Reading: Gerald and Wheatley 6th Edition, Chapter 0
The following problems are on pages 34-35 of the text:
- 15
- Answer for 16 which was not assigned: Total numbers =
180,001, largest + = 0.9999E5, most negative = -0.9999E5,
closest to zero 0.1000E-4 and -0.1000E-4.
- 17
- 18 For this problem the text uses S(10,3,-9,9). The text
gives examples of rounding and chopping. Answers are
given in the back of the book:
- a. 0123E2 (chop) 0.123E2 (round)
- b.-0.319E-1 (chop); -0.320E-1 (round)
- c. 0.122E2 (chop); 0.123E2 (round)
- d. -0.288E3 (chop); -0.289E3 (round)
- e. 0.130E3 (chop); 0.130E3 (round)
- f. -0.156E5 (chop); -0.156E5 (round)
- g. 0.123E-6 (chop); 0.123E6 (round)
- 21
- 22
- 24 answer in book: Exact = -1.297387 chopped 3 digits =
-1.31, relative error = -0.00972 Round 3 digits = -1.30,
relative error = -0.00201
Back to Cover Page