The following commands in Maple:
with( Student[Calculus1] ): NewtonsMethod( cos(x), x = 0.5, output = plot, iterations = 5 );
produces the plot in Figure 1 (click to enlarge).
Figure 1. Newton's method applied to f(x) = cos(x).
For more help on Newton's method or on the Student[Calculus1] package, enter:
?NewtonsMethod ?Student,Calculus1
Copyright ©2005 by Douglas Wilhelm Harder. All rights reserved.