Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Approximate the root of a function using Newton’s method
ResourceFunction["NewtonMethod"][f,{x,x0},n] returns the root approximation obtained by applying Newton’s method at most n times to a differentiable function f with starting value x0. |
Use Newton’s method to approximate the root of a function:
In[1]:= |
Out[1]= |
Approximate the root around x=1.5:
In[2]:= |
Out[2]= |
Show the iterations found:
In[3]:= |
Out[3]= |
This work is licensed under a Creative Commons Attribution 4.0 International License