NUMERICAL ERRORS
NUMERICAL ERRORS
NUMERICAL ANALYSIS
Definitions
• Numerical errors arise from the use of approximations to represent exact
mathematical operations and quantities.
• These include truncation errors, which result when approximations are used to
represent exact mathematical procedures, and round-off errors, which result
when numbers having limited significant figures are used to represent exact
numbers.
(b) The percent relative error for the bridge is: εt = (1/10,000)×100% = 0.01%
and for the rivet it is: εt = (1/10)×100% = 10%
Comments: both measurements have an error of 1 cm, the relative error for the
rivet is much greater.
Definitions (cont.)
• In actual situations, the true value is rarely available. For numerical methods, the
true value will be known only when we deal with functions that can be solved
analytically.
• However, in real-world applications, we will obviously not know the true answer
a priori. For these situations, an alternative is to normalize the error using the
best available estimate of the true value.
• Approximate percent relative error (εa):
As more terms are added in sequence, the approximation becomes a better and
better estimate of the true value of ex.
Starting with the simplest version, ex = 1, add terms one at a time to estimate e0.5.
After each new term is added, compute the true and approximate percent relative
errors. Note that the true value is e0.5 = 1.648721…
Add terms until the absolute value of the approximate error estimate εa falls below a
prespecified error criterion εs conforming to three significant figures.
Example 2 (cont.)
SOLUTION
• The error criterion that ensures a result is correct to at least three significant
figures:
εs = (0.5 × 102 − 3)% = 0.05%
SOLUTION
• Considering the condition for the true error:
0.0005 = 0.5 × 10−3 ≤ Δu = 0.001 ≤ 0.5 × 10−2 = 0.005
ð u can be rounded by ũ = 12.34 with 4 significant figures (k = 1, 0, −1, −2).
• Round-off error of u and ũ:
θũ = |u – ũ| = |12.34 – 12.3456| = 0.0056