Chapter 3
Chapter 3
off Errors
Chapra: Chapter-3
• For many engineering problems, we cannot obtain analytical
solutions
• Numerical methods yield approximate solution that are close
to the analytical solution. We cannot exactly compute the
errors associated with numerical methods.
▫ Only rarely given data are exact, since they originate from
measurements. Therefore there is probably error in the input
information.
▫ Algorithm itself usually introduces errors as well, e.g., unavoidable
round-offs, etc …
▫ The output information will then contain error from both of these
sources.
• How confident we are in our approximate result?
• The question is “how much error is present in our calculation
and is it tolerable?”
• Accuracy. How close is a computed or measured
value to the true value
• Precision (or reproducibility). How close is a
computed or measured value to previously computed
or measured values.
• Inaccuracy (or bias). A systematic deviation from the
actual value.
• Imprecision (or uncertainty). Magnitude of scatter.
Significant Figures
• Number of significant figures indicates precision. Significant digits of a
number are those that can be used with confidence, e.g., the number of
certain digits plus one estimated digit.
• Let the speed reading a motorcycle be in between 48 and 49 km/h.
Someone says it is 48.8 and another says 48.9 km/h. Two digits 48 are
certain and one digit must be estimated.
5.38 x 104 3
5.380 x 104 4
5.3800 x 104 5
Error Definitions
Numerical errors arise from the use of approximations to
represent exact mathematical operations and quantities.
These include
1. truncation errors, which result when approximations are
used to represent exact mathematical procedures
2. round-off errors, which result when numbers having limited
significant figures are used to represent exact numbers.
Error Definitions
True Value = Approximation + Error
True error
true error
True fractional relative error
true value
true error
True percent relative error, t 100%
true value
• For numerical methods, the true value will be known only
when we deal with functions that can be solved analytically
(simple systems). In real world applications, we will
obviously not know the true answer a priori. Then
Integer part
exponent
m.be
mantissa Base of the number system used
Integer part
mbe exponent
156.78 0.15678103
1
0.029411765 Suppose only 4
34 decimal places to be stored
0.0294100