Professional Documents
Culture Documents
Lecture 3
Types of Error
Truncation Error: the notation of truncation refers to errors
introduce when a more complicated mathematical expression is
replaces by a more elementary formula. This terminology
originates from the technique of replacing a complicated
function with a truncated Taylor series. For example
x2 x4 x6 x8 x 2n
e 1 x
2
... ...
2! 3! 4! n!
x4 x6 x8
1 x
2
2! 3! 4!
Types of Error (cont.)
Round-off: A computer’s representation of real number is limited to
the fixed number of mantissa. True values are some times not stored
exactly by a computer’s representation. This cause what we are called
round-off error .
Examples
Secant multiple En 1 A En
2
Newton-Raphson simple En 1 A En
Newton-Raphson multiple En 1 A En
1.8
Muller - En 1 A En
Speed of convergence
We can compare different methods in terms of
their convergence rate.
Quadratic convergence is faster than linear
convergence.
A method with convergence order q converges
faster than a method with convergence order p if
q>p.
A Method of convergence order p>1 are said to
have super linear convergence.
Stopping Criteria
Method of finding the zero’s of nonlinear function f(x) can be
stopped when either following condition satisfied:
4) Find the point on the parabola y=x^2 that is closest to the point
(3,1) accurate to 10 decimal places.
5) Find the point on the graph y=sin(x-sin(x)) that is closest to the
point (2.1,0.5) accurate to 10 decimal places.
6) Find the value of x at which the minimum vertical distance
between graphs of f(x)=x^2+2 and g(x)=(x/5)-sin(x) occurs
accurate to 10 decimal places.
Find the point on the graph y=sin(x-sin(x)) that is
closest to the point (2.1,0.5) accurate to 4 decimal
places.
Solution
d ( x 2.1) 2 ( y 0.5) 2
d ( x 2.1) 2 (sin( x sin( x)) 0.5) 2
To find the value of x min that yield minimum distance,
d/x at x min must equal zero.
Let f(x) d/x.
Now the problem is to find the roots of f(x)
( x 2.1) (sin( x sin( x)) 0.5)(cos( x sin( x))(1 cos( x))
f(x)
( x 2.1) 2 (sin( x sin( x)) 0.5) 2
Solution (cont.)
d f(x)
Solution (cont.)