Roundoff
Error
MME 523
No
calculation in mathematics is perfect. No
Why do we care?
In
e
Another
way to specify desired accuracy is to speak in terms of how many decimal
places are desired. We will use this in this course. Thus a problem may ask you to find the
approximate answer to “3 decimal places”.
Review: How do you round off
correctly?
Let's
say someone asks us what p is to “4 decimal places”.
We get out a calculator and find it to say that
p =3.141592654
(Now
actually that statement is false. p is an irrational number, meani
But back to our question of getti
Here
we find a 9 in the 5th place, so we bump up the 5 to a 6 and make
the statement
to 4 decimal places, p is equal to 3.1416.
By
the same procedure, to 5 places, p is equal to 3.14159 (because of the 2 in the 6th
place).
General procedure: to obtain an approximation accurate to n places, go to the n+1st
place and see what digit is there. If it is 5 or greater, increase the nth
place by 1. If it is 4 or less, leave the nth place alone. Last, truncate the
decimal at the nth place.
How much possible error is associated with roundi
we
give 2.785 as our 3 place approximation, because the 4th place had a
4 in it.
How
much were we off by? We dropped the .000499, so we were off by that much; that
is the error associated with the round off procedure.
Suppose
the number had been 2.672500 and we round off to 3 places. Then our answer would be 2.673 due to the 5 in the 4th
place. Our error would be .0005 in this case.
These
are extreme examples illustrated the worst case error associated with roundi
if you round off to n decimal places, the error
associated with this will be no more than
.000…05 (where there are n
0s before the 5)
or 5 x 10-(n+1) in scientific notation
Summary:
2 decimal place accuracy has a maximum error of .005
3 decimal place accuracy has a maximum error of .0005
4 decimal place accuracy has a maximum error of .00005
.
.
n
decimal place accuracy has a maximum error of .00…05 (n 0s)
In
the context of this course, if a problem requires, say, 3
decimal place accuracy, then you will need to make enough computations
for a maximum error of .0005. There will be formulas for helpi