In: Advanced Math
The unequally spaced data given in Table 2 were generated from f(x)=3xcos(x)
Table 2
x | 0.1 | 0.2 | 0.3 | 0.4 | .0.55 | 0.75 | 0.95 |
f(x) | 0.2985 | 0.588 | 0.8598 | 1.1052 | 1.4067 | 1.6464 | 1.6578 |
a) Calculate f''(0.1), f''(0.95) and
f'' (0.3) by using the appropriate divided
difference
(forward, backward and central) equations which will give the most
accurate result.
Compute the true percent relative error for each case.
b) Evaluate the integral from a=0.1 to b=0.95 using a
combination of the trapezoidal and
Simpson’s rules; employ Simpson’s rule wherever possible to obtain
the highest
accuracy. Compute the true percent relative error.