Question: Write the Newton recursive function N M ( f , f p , x ) to find the root of the f ( x )

Write the Newton recursive function NM(f,fp,x) to find the root of the f(x)=0 function.
f= function f(x) whose root you are
searching for
fp= derivative f'(x)
x= initial estimate of the root
Within the function consider an error tolerance of 1E-3, i.e.,?abs(f(x))1e-3 will stop recursion.
PruebaX=2# input initial x valuedef f(X):return X**2-2.0def fp(X):return 2*Xprint("ROOT=%.5F"%NIM(f, fp,X))ResultadoROOT-1.41422
Write the Newton recursive function NM(f,fp,x) to find the root of the f(x)=0 function.
f= function f(x) whose root you are
searching for
fp= derivative f'(x)
x= initial estimate of the root
Within the function consider an error tolerance of 1E-3, i.e.,?abs(f(x))1e-3 will stop recursion.
Write the Newton recursive function NM(f,fp,x) to find the root of the f(x)=0 function.
f= function f(x) whose root you are searching for
fp= derivative f'(x)
x= initial estimate of the root
Within the function consider an error tolerance of 1E-3, i.e.,?abs(f(x))1e-3 will stop recursion.
Por ejemplo:
 Write the Newton recursive function NM(f,fp,x) to find the root of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!