COMPUTER PROBLEMS 1.5
\(\def\ds{\displaystyle} \)
1 (a) Applying the Secant Method formula shows
convergence to the root \(1.76929235\)
1 (b) \(1.67282170\)
1 (c) \(1.12998050\)
3 (a) Applying formula (1.37) for Inverse Quadratic
Interpolation shows convergence to \(1.76929235\)
3 (b) Similar to part (a). Converges to \(1.67282170\)
3 (c) Similar to part (a). Converges to \(1.12998050\)
5 In both (a) and (b), scipy.optimize.brentq fails because there is no bracketing
interval surrounding the root.
7 The scipy.optimize command
>> brentq(lambda x: 1/x,-1., 2.)
converges to near zero, although there is no root there.
9 Secant method with appropriate starting points finds all five roots
\(-1.381298, -2/3, 0.205183, 1/2\), and \(1.176116\). Secant Method convergence to
\(-2/3\) is linear, and convergence is superlinear to the other four roots.
Brent's Method cannot find the \(-2/3\) root since there is no bracketing interval.