Open Educational Resources

Mathematica Lab Tutorials: Lab 4

Lab questions

Develop a procedure whose input is a function f, an initial guess x_0, the maximum number of iterations nmax, and the stopping criterina eps. The function should return the following table:
– Iteration, root estimate x_i, ε_r
Using two examples from your class notes (one that converges and another that does not), compare the output of your code with the mathematica built-in function:
FindRoot[f(x)==0,{x,x0}]

Video Tutorials

Application of Derivative function, While loop, tables



FindRoot



Leave a Reply

Your email address will not be published.