<

Question: StudentNumericalAnalysis,Secant

Dear All

In student numerical package, for in case of Secant method, how can we force Maple to print procedure and result of every iteration like we do in calculations by hand??

It gives direct output like:

 

with(Student[NumericalAnalysis]):

f := x^3-7*x^2+14*x-6

x^3-7*x^2+14*x-6

(1)

Secant(f, x = [2.7, 3.2], tolerance = 10^(-2))

3.005775850

(2)

Secant(f, x = [2.7, 3.2], tolerance = 10^(-2), output = sequence)

2.7, 3.2, 3.100884956, 2.858406793, 3.026267866, 3.005775850

(3)

What is we want print actual procedure that carry out calculations in step (3) ?

*What if, **want to

Download Secant_Method.mw

Regards

Please Wait...