A root-finding routine working in binary64 ( ) is applied to p(x) = x^3 - 8.001x^2 +…
PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics
Error, Chance and the Machine, Ch Rounding, backward error and the sensitivity of a computation
Problem
A root-finding routine working in binary64 (u=1.11×10−16) is applied to p(x)=x3−8.001x2+21.005x−18.006, whose three roots are exactly 2, 3 and 3.001. Seeking the root near x=3, the routine returns r^=3.0003.
((a)) Compute the residual p(r^) and hence the backward error η=∣a3∣r^3+∣a2∣r^2+∣a1∣r^+∣a0∣∣p(r^)∣, where a3=1, a2=−8.001, a1=21.005, a0=−18.006.
((b)) Evaluate p′(r^)=3r^2−16.002r^+21.005 and use it to form the coefficient-sum condition number κ=∣p′(r^)∣∣a3∣r^2+∣a2∣r^+∣a1∣+∣a0∣/r^.
((c)) Combine (a) and (b) into the first-order forward error estimate κη for the relative error of r^, and compare it with the true relative error of r^ from the nearer of the two true roots 3 and 3.001.
((d)) The key result for the sensitivity of a simple root evaluates the condition number at the root itself. Recompute κ with r=3 in place of r^, form κη again, compare it with the true error, and say which condition of the key result fails here.