Example 3. Compare
the secant method with the inverse quadratic method for finding the
roots of the cubic polynomial
.
3 (a) Investigate
fast convergence at the simple root
.
Solution 3 (a).
Graph the function.
![[Graphics:../Images/BrentMethodMod_gr_147.gif]](../Images/BrentMethodMod_gr_147.gif)
Fast
Convergence. Investigate fast convergence at
the simple root
, using
the starting values ![]()
Use the subroutine for the inverse quadratic method.
![[Graphics:../Images/BrentMethodMod_gr_152.gif]](../Images/BrentMethodMod_gr_152.gif)
Use the efficient version for the inverse quadratic method.
![[Graphics:../Images/BrentMethodMod_gr_154.gif]](../Images/BrentMethodMod_gr_154.gif)
Compare with the slower secant method.
![[Graphics:../Images/BrentMethodMod_gr_156.gif]](../Images/BrentMethodMod_gr_156.gif)
(c) John H. Mathews 2005