Académique Documents
Professionnel Documents
Culture Documents
MODUL 1
I.1 Flowchart Metode Bisection
START
f1=f(x1)
f2=f(x2)
f1*f2 >=0
x1, x2
f1=f(x1); f2=f(x2)
e=1; ite=0
e>=tol
A
B
1
A
ite=ite+1
x3=(x1+x2)/2
f3=f(x3)
e=abs(f3)
N
x1=x3
f1*f3<=0
Y f1=f3
x2=x3
f2=f3
end
2
I.2 Flowchart Metode Interpolasi Linier
START
f1=f(x1)
f2=f(x2)
f1*f2 >=0
x1, x2
f1=f(x1); f2=f(x2)
e=1; ite=0
e>=tol
A
B
3
A
ite=ite+1
x3=x2-(f2*(x2-
x1)/(f2-f1))
f3=f(x3)
e=abs(f3)
N
x1=x3
f1*f3<=0
f1=f3
x2=x3
f2=f3
end
4
I.3 Flowchart Metode Secant
START
f1=f(x1);
f2=f(x2);
e=1;
ite=0
e>=tol
x3=x2-(f2(x2-x1)/(f2-f1))
f3=f(x3)
ite=ite+1
e=abs(f3)
B A
5
B A
x1=x2
x2=x3
f1=f2
f2=f3
end