Professional Documents
Culture Documents
Part 2: There is no partial credit given for multiple-choice problems. Although there is no partial
credit on this assignment, you must show your work on all of the problems. If you fail to
show work you will receive a zero for the problem even if it is correct.
There are 10 problems worth 40% (4 points each) [online-component].
Part 1: Circle your answers here. Do not detach this sheet from the homework.
1. T F 6. T F 11. T F
2. T F 7. T F 12. T F
3. T F 8. T F 13. T F
4. T F 9. T F 14. T F
5. T F 10. T F 15. T F
Part 2: Circle your answers here. Do not detach this sheet from the homework.
16. a b c d e 21. a b c d e
17. a b c d e 22. a b c d e
18. a b c d e 23. a b c d e
19. a b c d e 24. a b c d e
20. a b c d e 25. a b c d e
AME 302 chapter 2 hw set Copyright ©Wayne Hacker 2018. All rights reserved. 2
Problem 1. True or False: Crudely, precision refers to how closely individual computed
or measured values agree with each other.
Problem 2. True or False: A company makes a special rod to hold an air shock in
place on a truck. The company that makes the interchangeable rods claims that the
rod is 12.37 ± 0.005 cm long. It is known that the company took many samples of the
manufactured rods, and that accurate measurements were taken. The reported number
with the uncertainty is a statement about precision, but not accuracy since the rods were
not actually inserted into the shocks.
Problem 5. True or False: Given an iteration scheme of the form: xn+1 = f (xn )
for n ∈ N0 , the approximate relative percent error at the (n + 1)st step is given by
a = (xn+1 − xn )/xn+1 .
AME 302 chapter 2 hw set Copyright ©Wayne Hacker 2018. All rights reserved. 3
Problem 6. True or False: An absolute error of order 10−5 always results in a good
approximation.
Machine epsilon
Problem 8. True or False: Let eps denote the machine epsilon in our idealized decimal
machine, which uses chopping instead of rounding in its calculations. If we enter >> 1 +
(3/2)*eps, the output would be 1 + eps.
Roundoff Errors
22
π− = 0.0012645 = 1.2645 × 10−3 .
7
Three-digit chopping arithmetic and three-digit rounding arithmetic give the same answer
for the absolute error. 1
1
Here the three-digits must be significant figures. Do not count the zero placeholders, since they would
not be present in our “digital machine number” format. That is, we perform our three-significant-digit
rounding/chopping when the machine number is expressed in the form:
fl(x) = σf · (0.d1 d2 · · · dk ) · 10σe ·n with d1 6= 0 and the σ’s representing the ± signs.
AME 302 chapter 2 hw set Copyright ©Wayne Hacker 2018. All rights reserved. 4
22
π− = 0.0012645 = 1.2645 × 10−3 .
7
Four-digit chopping arithmetic and Four-digit rounding arithmetic give the same answer
for the absolute error.
π − 22
7
= .00040250 = 4.0250 × 10−4 .
π
Three-digit chopping arithmetic and three-digit rounding arithmetic give the same answer
for the absolute relative error.
Truncation Errors
Problem 13. True or False: According to our definition of truncation, chopping error
is an example of a truncation error since with chopping you are truncating the number.
Problem 14. True or False: A five term Taylor series approximation to a function f (x)
is an example of a Truncation Error.
Problem 16. Compute the absolute relative error |xTS − xNS |/|xTS | of xTS = π by xNS =
22/7 (a common rational approximation of π) using exact arithmetic (keep 4 significant
figures);
(a) 0.0004024 (b) 0.0004026
(c) 0.0004125 (d) 0.0004025
(e) None of these
Problem 18. Convert the decimal number (100)10 into a binary number.
(a) (1 011 010)2 (b) (1 101 010)2
(c) (1 101 100)2 (d) (1 100 100)2
(e) None of these
AME 302 chapter 2 hw set Copyright ©Wayne Hacker 2018. All rights reserved. 6
Problem 19. Convert the binary number (1101011)2 into hexadecimal (base 16) number.
(a) (7A)16 (b) (6B)16
(c) (6C)16 (d) (6A)16
(e) None of these
Problem 20. Convert the hexadecimal number (ABC123)16 into a decimal number.
(a) 12, 236, 199 (b) 10, 256, 199
(c) 11, 256, 099 (d) 12, 256, 099
(e) None of these
Roundoff Errors
Truncation Errors
n=0
n!
Consider the statements given in (i) and (ii). Are the statements true or false?
(i) The alternating series has a smaller relative error because there is more cancellation
than there is in the inverted series of all positive terms.
(ii) If we used three digit chopping in the alternating series, then the general trend
should be that the relative error should be reduced compared to the case of using exact
arithmetic.
(a) Statements (i) and (ii) are true (b) (i) is true; (ii) is false
(c) Both statements are false (d) (i) is false; (ii) is true
You must justify your answer to receive any credit on this problem.
Problem 25 (Finite differences). Let xi−1 , xi , xi+1 be three equally spaced points
along the x-axis a distance h apart (xi±1 = xi ± h), and let y = f (x) be a smooth
function. Use a Taylor series expansion of f about xi to approximate the error incurred
when f 0 (x) is replaced by a centered finite difference. That is, find α ∈ R:
f (xi+1 ) − f (xi−1 )
f 0 (xi ) = + O(hα ) (∗) .
2h
The error on the forward and backward differences are O(h). Is the centered difference
better or worse? Assume h 1.
(a) 1/2, worse (b) 1, the same
(c) 2, better (d) 2, worse
(e) None of these