You are on page 1of 2

Mtodo Newton Raphson

In[330]:= f[x_]:=x^6-x-1

D [f[x], x ]

Out[331]= -1+6 x^5

In[332]:= Derf[x_]:=-1+6 x^5

Iter[x_]:=x-(f[x]/Derf[x])

N[Iter [5],10]

Out[334]= 4.166942237

In[335]:= N[Iter [%],10]

Out[335]= 3.47304529

In[336]:= N[Iter [%],10]

Out[336]= 2.89548927

In[337]:= N[Iter [%],10]

Out[337]= 2.41570490

In[338]:= N[Iter [%],10]

Out[338]= 2.0192042

In[339]:= N[Iter [%],10]

Out[339]= 1.6960569
In[340]:= N[Iter [%],10]

Out[340]= 1.442385

In[341]:= N[Iter [%],10]

Out[341]= 1.262384

In[342]:= N[Iter [%],10]

Out[342]= 1.16451

In[343]:= N[Iter [%],10]

Out[343]= 1.13672

In[344]:= N[Iter [%],10]

Out[344]= 1.13473

In[345]:= N[Iter [%],10]

Out[345]= 1.1347

In[346]:= N[Iter [%],10]

Out[346]= 1.1347

In[347]:= f[1.1347]

Out[347]= -0.000248312

You might also like