NM Chap 1.2
NM Chap 1.2
APPLICATIONS
(MEC500)
Accuracy
Uncertainty
Trueness
Precision in numerical
method is referred to the
consistency of the
estimates to be closed to
each other.
Accuracy is the measure
of closeness of the
estimate to the target.
Precision
Random error
2. Quantifying Error
When the true value of the quantity is known, the error is quantified in two
different but related ways.
which defines the error as the difference between the true value and the
approximation or present approximation and the previous approximation.
2. Quantifying error:
(1) True error (Absolute)
Let x denote an exact (or true) value and x* denote an approximate (or
estimated) value or simply an approximation. We may then express the
relation,
Et x x *
x x*
t x100%
x
2. Quantifying error:
(3) Approximate error (Relative)
In the absent of the true value (which is usually the case in numerical
methods), the following error calculation is employed.
(Approximate) Relative error:
x new x old
Ea
x new
xnew denote a present (or new) approximation.
xold denote a previous (or old) approximation.
or in the percentage form, the approximate percent relative error is
x new x old
a new
x100%
x
3. Decide when to terminate an
iterative calculation
In employing the numerical methods, particularly the iterative approaches,
we are basically interested in whether the absolute value of the
approximate percent relative error, a is less than the prespecified
tolerance, s (or desired accuracy) that is
a s
The desired accuracy or prespecified tolerance, s is defined as
s (0.5x10 2 p )%
If a s is satisfied, the approximation is said to be accurate at least to p
(significant digits).
Significant Digits
Introduction: before discussing the errors associated with numerical
methods, it is useful to review basic concepts related to approximate
representation of the numbers themselves.
those digits (or numbers) that can be used with confident plus one
estimated digit. For example: 100 / 110 / 120 metal sheet
metal sheet
Significant Digits
Number Significant Digits
2.347 4
1.6520 5
189.708 6
0.0012 2
0.001200 4
Computer can only store a finite number of digits. The remaining digits
are either chopped off or rounded off.
This finite number representation in the computer leads to an
unavoidable error called a round-off error.
4. Error in Numerical Methods
(b) TRUNCATION ERROR
h
x0 x
x0 + h
h : mapprox
more accurate
But, when h is too small, REr dominates. This observation
suggests that there must be an optimum value of h .
5. Floating-point numbers range and
precision.
Evaluate the polynomial
and
At . Use 3 digit arithmetic with chopping.
1.99 1.96