Professional Documents
Culture Documents
Numeric Notes 2 Taylor Series
Numeric Notes 2 Taylor Series
18/10/2020 24
18/10/2020 25
18/10/2020 26
EX:
18/10/2020 27
For n=0
Truncation error
Truncation error
Truncation error
18/10/2020 28
For n=4
Remainder
Threfore
Exact solution
18/10/2020 29
18/10/2020 30
18/10/2020 31
18/10/2020 32
Ex: Increasing number of terms
18/10/2020 33
Ex: Decreasing the step size
18/10/2020 34
Some examples of using Taylor series
1. Approximating e
18/10/2020 35
4.1.3 Numerical Differentiation
Forward difference
18/10/2020 36
Center difference
18/10/2020 37
Real value:
FD
BD
CD
CD is the best
18/10/2020 38
Let’s see what happens if we decrease the step size
FD
BD
CD
18/10/2020 39
4.3 Total Error Truncation + Round off
Round off
Truncation error
Decrease the number of
By using smaller
computations
step size
18/10/2020 40
Consider CD method
(1)
(2)
Using eq (1,2)
18/10/2020 41
Assume we are given as the allowed round-off error
Assume we are given as the allowed truncation error
18/10/2020 42
Real value
18/10/2020 43
18/10/2020 44
MATLAB can store a
limited number of digits,
roughly
Not a bad
estimate
18/10/2020 45