Beruflich Dokumente
Kultur Dokumente
f(x + h) f(x h)
2h
with
h = 0.1, h = 0.01 and h = 0.001. Use nine decimal places
b). Compare with the value f (0.8) = cos (0.8)
( 3)
c). Compute the truncation error. Use f (c) cos(0.7) 0.764842187
6. Let f(x) = sin (x), where x is in measured in radians
a). Calculate approximations to f (0.8) using formula
f'(x)
Page 1 of 2
f1 2f0 + f1
with h = 0.05 to approximate f (5)
h2
f (5)
d). Which formulae gives the closest approximation
9. Use the numerical differential formula f (x0 )
f1 2f0 + f1
and h = 0.01 to
h2
2
4
approximate f (1) for the functions a). f(x) =x b). f(x) =x
Answer
1. 12.8
2. 0.02771
3. 1.067
4a). 2.54859 b). 2.4177 c). 1.87141
5. h
0.1
0.01
0.001
approximate f (x)
0.69554611
0.696695079
0.696706186
approximation error
0.001160599
0.00001163
0.000000523
6. h
0.1
0.01
approximate f (x)
0.696704389
0.696706709
7. a). 12.0025
b). 12
8. a). 0.0400016
9. a). 2
truncation error
0.001274736
0.000012747
0.000000127
c). 0.0025, 0
b). 12
Page 2 of 2