Old Mathematica Code

Numerical Methods: Mathematica 3.0 Notebooks
(c) John H. Mathews, 1998

To accompany the text:
Numerical Methods:  for Mathematics,
Science, and Engineering, 2
nd Ed, 1992
Prentice Hall, Inc.
Simon & Schuster,  One Lake Street
Upper Saddle River, New Jersey 07458  U.S.A.

Prentice Hall, Inc.; USA, Canada, Mexico ISBN 0-13-624990-6
Prentice Hall, International Editions:      ISBN 0-13-625047-5
www.Prenhall.com

Execute this cell to activate the Secant Method.
SecantMethod[f0_,x0_,x1_,delta_,epsilon_,max_,digits_]
f0_ the function f(x),
x0_ the starting value,
x2_ ,x1_ the starting values,
delta_ estimate for the accuracy of the solution,
epsilon_ estimate for the magnitude of  f(x),
max_ the maximum number of iterations,
digits_ the number of digits displayed in the output

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004