Example 5.  Use the Newton-Horner's subroutine and the starting value [Graphics:Images/HornerMod_gr_171.gif] to find a root of the polynomial
        [Graphics:Images/HornerMod_gr_172.gif].  
Run the Newton-Raphson subroutine and compare the two results (they should be close).

Solution 5.

[Graphics:../Images/HornerMod_gr_173.gif]


[Graphics:../Images/HornerMod_gr_174.gif]


[Graphics:../Images/HornerMod_gr_175.gif]


[Graphics:../Images/HornerMod_gr_176.gif]



[Graphics:../Images/HornerMod_gr_177.gif]


[Graphics:../Images/HornerMod_gr_178.gif]

Observe that the iterations are almost the same.  The reason they differ slightly is the method of evaluating the polynomial using powers of x verses nested multiplication.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004