Accuracy of Computations
Rounding error in floating-point arithmetic, ill-conditioned systems whose answers swing wildly, and pivoting strategies that limit the damage.
4 exercises
Exercise 1
Using two decimal places, add and .
Exercise 3
Consider this system ().
-
(a) Solve it. (b) Solve it by rounding at each step to four digits.
Exercise 4
Rounding inside the computer often has an effect on the result. Assume that your machine has eight significant digits.
-
Show that the machine will compute as unequal to . Thus, computer arithmetic is not associative.
-
Compare the computer’s version of and . Is twice the first equation the same as the second?
Exercise 5
Ill-conditioning is not only dependent on the matrix of coefficients. This example shows that it can arise from an interaction between the left and right sides of the system. Let be a small real.
-
Solve the system by hand. Notice that the ’s divide out only because there is an exact cancellation of the integer parts on the right side as well as on the left.
-
Solve the system by hand, roundin…
Adapted from Linear Algebra © 2016 Jim Hefferon. Licensed under CC BY-SA 3.0 US. Source: Linear Algebra. Imported at revision df2262e.