Note 1 - Approximations and Errors
Note 1 - Approximations and Errors
• Accuracy loss due to round-off error can also be reduced by rearranging calculations.
1 UoM
In20 S2 MA1024
Theorem 1.1 – Taylor’s Theorem. Suppose f ∈ C n [a, b], that f (n+1) exists on [a, b], and
x0 ∈ [a, b]. For every x ∈ [a, b], there exists a number ξ(x) between x0 and x with
where
f 00 (x0 ) f (n)
Pn (x) = f (x0 ) + f 0 (x0 )(x − x0 ) + (x − x0 )2 + · · · + (x0 )(x − x0 )n
2! n!
n
f (k) (x0 )
(x − x0 )k
X
= (1.10)
k=0 k!
and
f (n+1) (ξ(x))
Rn (x) = (x − x0 )n+1 (1.11)
(n + 1)!
Here Pn (x) is called the nth Taylor polynomial for f about x0 , and Rn (x) is called the
remainder term (or truncation error) associated with Pn (x).
example 1.2 (i) Find the nth Taylor polynomial of the function f (x) = ex about x0 =
0.
• If a small changes in the initial data produce correspondingly small changes in the final
results then the algorithm is stable; otherwise it is unstable.
• Some algorithms are stable only for certain choices of initial data, and are called condi-
tionally stable.
Definition 1.1. Suppose that E0 > 0 denotes an error introduced at some stage in the calcu-
lations and En represents the magnitude of the error after n subsequent operations.
2 UoM
In20 S2 MA1024
Figure 1.1
Definition 1.2 – Rate of Convergence. Suppose {βn }∞ n=1 is a sequence known to converge to
∞
zero, and {αn }n=1 converges to a number α. If a positive constant K exists with
then we say that {αn }∞ n=1 converges to α with rate, or order, of convergence O(βn ). (This
expression is read ”big oh of βn ”.) It is indicated by writing αn = α + O(βn ).
0
REFERENCES
(i) Numerical Analysis, Richard L. Burden, J.Douglas Faires.
(ii) Numerical Methods for Scientific and Engineering Computation, M.K. Kain, S.R.K. Iyenger, R.K. Jain
3 UoM