Professional Documents
Culture Documents
Newton Raphson
Newton Raphson
f1=f(x1)
F2=f(x2)
f1.f2 > 0
e = . Abs(x1 x2)
output end
e Tol
x3
f3 = f(x3)
X2 = x3
f1.f2 < 0
f2 = f3
X1 = x3
f1 = f3
start
f1=f(x1)
F2=f(x2)
f1.f2 > 0
2
3 = 2 (2 1 )
2 1
e = abs(f(x3))
output end
e Tol
x3
f3 = f(x3)
X2 = x3
f1.f2 < 0
f2 = f3
X1 = x3
f1 = f3
start A
E = 1, ite = 0
Input x1, x2, Tol
e Tol
f1=f(x1)
F2=f(x2) 2
3 = 2 (2 1 )
2 1
A f3 = f(x3)
E = abs (f3)
Ite = ite + 1
X1 = x1, X2 = x3
1 > 2
f1 = f1, f2 = f3
X1 = x2, X2 = x3
f1 = f2, f2 = f3
End
start
E = 1, ite = 0
e Tol
F = f(Xo)
Df = f(Xo)
X1 = Xo (f/df)
Ite = ite + 1
E = abs((X1 Xo)/Xo)
Xo = X1
Output x1, E,
Tol, ite
End