Calculate (i) p~∗ using a calculator or computer, (ii) the absolute error, ∣p~∗−p∣, and (iii) the relative error, ∣p∣∣p~∗−p∣. Then use the given value of p~ to compute (iv) the algorithmic error, ∣p~−p∣ and (v) the round-off error, ∣p~∗−p~∣.
((a)) Let f(x)=x4+7x3−63x2−295x+350 and let p=f′(−2). The value p~=2(10)−7f(−2+10−7)−f(−2−10−7) is a good approximation of p. p~ is exactly 8.99999999999999.
((b)) Let f′(x)=exsin(10x) and f(0)=0 and let p=f(1). It can be shown that p=1011e(sin10−10cos10)+10110. Euler's method produces the approximation p~=101∑i=110ei/10sini. Accurate to 28 significant digits, p~ is 0.2071647018159241499410798569.
((c)) Let a0=85+5 and an+1=4an(1−an), and consider p=a51. It can be shown that p=a51=85−5. The most direct algorithm for calculating a51 is to calculate a1,a2,a3,…a51 in succession, according to the given recursion relation. Use this algorithm to compute p~∗ and p~.