You are on page 1of 1

F(X)=exp(-x)-x error=abs((x0-x1)/x1*100)

F'(x)=exp(-x)-1 x1=x0-f(x0)/ f'(x0)

x0 f(x0) f'(x0) x1 error


0 1 -2 0.5 100
0.5 0.10653066 -1.60653065971 0.566311 11.709291
0.566311 0.00130451 -1.567615513 0.56714317 0.14672871
0.56714317 1.9648E-07 -1.56714336152 0.56714329 2.21064E-05
0.56714329 4.44089E-15 -1.56714329041 0.56714329 5.08968E-13
0.56714329 0 -1.56714329041 0.56714329 0
0.56714329 0 -1.56714329041 0.56714329 0
0.56714329 0 -1.56714329041 0.56714329 0

x1=x0 .... hasta que el error sea cero

You might also like