You are on page 1of 2

II.

MODUL 2
II.1 Flowchart Metode Succesive Approximation

START

x0 ; tol ;

e =1 ; ite=0

e>= tol

x1=g(x0)
ite=ite+1
e=abs((x1-x0)/x0)
x0=x1

disp x1, ite, tol, e

END

7
II.2 Flowchart Metode Newton-Rhapson

START

x0 ;
tol ;

e=1 ; ite=0

e>= 0

f0=f(x0)
fa=f (x0)
x1=x0-(f0/fa)
e=abs((x1-x0)/x0)
ite=ite+1
x0=x1

disp x1, ite, tol, e

END

You might also like