411 REFERENCE · Wikibooks
Linear Algebra/Topic: Accuracy of Computations/Solutions
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Solutions
Problem 1
Using two decimal places, add and .
Answer
Scientific notation is convienent to express the two-place restriction.
We have .
The has no apparent effect.
Problem 2
This intersect-the-lines problem contrasts with the example
discussed above.
x200px
Illustrate that in this system
some small change in the numbers will produce only a
small change in the solution by changing the constant in the
bottom equation to and solving.
Compare it to the solution of the unchanged system.
Answer
The reduction
gives a solution of .
Problem 3
Solve this system by hand Rice 1993.
<li> Solve it accurately, by hand.
<li> Solve it by
rounding at each step to four significant digits.
Answer
<li> The fully accurate solution is that and .
<li> The four-digit conclusion is quite different.
Problem 4
Rounding inside the computer often has an effect on the result.
Assume that your machine has eight significant digits.
<li> Show that the machine will compute
as unequal to .
Thus, computer arithmetic is not associative.
<li> Compare the computer's version of
and .
Is twice the first equation the same as the second?
Answer
<li> For the first one, first, is
and so
.
For the other one, first
and so
.
<li> The first equation is
while the second is
.
Problem 5
Ill-conditioning is not only dependent on the matrix of
coefficients.
This example Hamming 1971 shows that it can arise from an
interaction between the left and right sides of the system.
Let be a small real.
<li> Solve the system by hand.
Notice that the 's divide out only because there is
an exact cancelation of the integer parts on the right side
as well as on the left.
<li> Solve the system by hand, rounding to two decimal
places, and with .
Answer
<li> This calculation
gives a third equation of .
Substituting into the second equation gives
so and thus .
With those, the first equation says that .
<li> The solution with two digits kept
comes out to be , , and .
References
Richard W. Hamming Introduction to Applied Numerical Analysis Hemisphere Publishing 1971.
John R. Rice Numerical Methods, Software, and Analysis Academic Press 1993.