Example 4. Use
Brent's Method to find the three roots of the cubic
polynomial
.
Solution 4.
Enter the function.
Graph the function
.
![[Graphics:../Images/BrentMethodMod_gr_223.gif]](../Images/BrentMethodMod_gr_223.gif)
![[Graphics:../Images/BrentMethodMod_gr_224.gif]](../Images/BrentMethodMod_gr_224.gif)
Root (i). Use
Brent's Method to find the root that lies in the
interval
with
an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_229.gif]](../Images/BrentMethodMod_gr_229.gif)
Compare with the Regula Falsi Method which is slower and takes
about 36 iterations to achieve an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_232.gif]](../Images/BrentMethodMod_gr_232.gif)
![[Graphics:../Images/BrentMethodMod_gr_233.gif]](../Images/BrentMethodMod_gr_233.gif)
Compare with the Bisection Method which is slower and takes about
50 iterations to achieve an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_236.gif]](../Images/BrentMethodMod_gr_236.gif)
![[Graphics:../Images/BrentMethodMod_gr_237.gif]](../Images/BrentMethodMod_gr_237.gif)
![[Graphics:../Images/BrentMethodMod_gr_238.gif]](../Images/BrentMethodMod_gr_238.gif)
Root (ii). Use
Brent's Method to find the root that lies in the
interval
with
an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_242.gif]](../Images/BrentMethodMod_gr_242.gif)
Compare with the Regula Falsi Method which is slower and takes
about 8 iterations to achieve an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_245.gif]](../Images/BrentMethodMod_gr_245.gif)
Compare with the Bisection Method which is slower and takes about
47 iterations to achieve an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_248.gif]](../Images/BrentMethodMod_gr_248.gif)
![[Graphics:../Images/BrentMethodMod_gr_249.gif]](../Images/BrentMethodMod_gr_249.gif)
Root (iii). Use
Brent's Method to find the root that lies in the
interval
with
an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_253.gif]](../Images/BrentMethodMod_gr_253.gif)
Compare with the Regula Falsi Method which is slower and takes
about 50 iterations to achieve an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_256.gif]](../Images/BrentMethodMod_gr_256.gif)
![[Graphics:../Images/BrentMethodMod_gr_257.gif]](../Images/BrentMethodMod_gr_257.gif)
![[Graphics:../Images/BrentMethodMod_gr_258.gif]](../Images/BrentMethodMod_gr_258.gif)
Compare with the Bisection Method which is slower and takes about
50 iterations to achieve an accuracy of
.
![[Graphics:../Images/BrentMethodMod_gr_261.gif]](../Images/BrentMethodMod_gr_261.gif)
![[Graphics:../Images/BrentMethodMod_gr_262.gif]](../Images/BrentMethodMod_gr_262.gif)
![[Graphics:../Images/BrentMethodMod_gr_263.gif]](../Images/BrentMethodMod_gr_263.gif)
(c) John H. Mathews 2005