Professional Documents
Culture Documents
10/22/2021 1
Two sources of numerical error
1) Round off error
2) Truncation error
3) Human Error
4) Modeling Error
5) Data Error due to uncertainty
2
Round off Error
• Caused by representing a number
approximately
1
0.333333
3
2 1.4142...
3
Problems created by round off error
4
Problem with Patriot missile
• Clock cycle of 1/10 seconds was
represented in 24-bit fixed point
register created an error of 9.5 x
10-8 seconds.
• The battery was on for 100
consecutive hours, thus causing
an inaccuracy of
−8 s 3600s
= 9.5 10 100hr
0.1s 1hr
= 0.342s
5
Problem (cont.)
• The shift calculated in the ranging system
of the missile was 687 meters.
• The target was considered to be out of
range at a distance greater than 137
meters.
6
Effect of Carrying Significant
Digits in Calculations
7
Find the contraction in the
diameter
Tc
D = D (T )dT
Ta
α = a0+ a1T + a2 T2
8
Thermal Expansion
Coefficient vs Temperature
T(oF) α (μin/in/oF)
-340 2.45
-300 3.07
-220 4.08
-160 4.72
D = D T
-80 5.43
0 6.00
40 6.24
80 6.47
9
Regressing Data in Excel
(general format)
Alpha ( in/in/ o F)
8.00
4.00
0.00
-400 -200 0 200
o
T ( F)
Alpha ( in/in/ F)
8.00
o 4.00
0.00
-400 -200 0 200
T (oF)
15
Example of Truncation Error
2!
16
Another Example of Truncation
Error
secant line
P
tangent line
90
y = x2
60
30
0 x
0 1.5 3 4.5 6 7.5 9 10.5 12
18
Example — Integration
90
9
y = x2 2
60
x dx
30 3
0 x
0 3 6 9 12
19
Integration example (cont.)
= (6 − 3) + ( x 2 ) (9 − 6)
2 2
x dx ( x )
x =3 x =6
3
= (3 2 )3 + (6 2 )3
= 27 + 108 = 135
Actual value is given by
9 9
x 3 93 − 33
3 x dx = 3 = 3 = 234
2
3
Truncation error is then
234 − 135 = 99
Can you find the truncation error with 4 rectangles?
20
Additional Resources
For all resources on this topic such as digital audiovisual
lectures, primers, textbook chapters, multiple-choice tests,
worksheets in MATLAB, MATHEMATICA, MathCad and
MAPLE, blogs, related physical problems, please visit
http://numericalmethods.eng.usf.edu/topics/sources_of_err
or.html
THE END
Acknowledgement
http://numericalmethods.eng.usf.edu