0% found this document useful (0 votes)
26 views6 pages

Modul 1 Persamaan Nonlinier I. Metode Bisection: Start

The document describes three methods for finding the root of a non-linear equation: the bisection method, linear interpolation method, and secant method. The bisection method uses function evaluation to narrow the range between two values where the function changes sign. The linear interpolation method estimates the root as a linear interpolation between two points. The secant method iteratively finds roots by using the secant line between two points to estimate the next x-intercept.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views6 pages

Modul 1 Persamaan Nonlinier I. Metode Bisection: Start

The document describes three methods for finding the root of a non-linear equation: the bisection method, linear interpolation method, and secant method. The bisection method uses function evaluation to narrow the range between two values where the function changes sign. The linear interpolation method estimates the root as a linear interpolation between two points. The secant method iteratively finds roots by using the secant line between two points to estimate the next x-intercept.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

MODUL 1

Persamaan Nonlinier
I. Metode Bisection

START

x1,x2,tol

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 (x1-x2)/2

N
x1=x3
f1*f3<=0
Y f1=f3

x2=x3
f2=f3

x3 ;tol ; ite ; e

end

2
II. Metode Interpolasi Linier

START

x1,x2,tol

f1*f2>=0

x1 , x2

f1=f(x1) ; f2=f(x2)

e=1 , ite=0

e>=tol

ite = ite+1
x3=x2-(f2*(x2-x1)/(f2-f1))
f3=f(x3)
e=absf(x3)

B A

3
B A

N x1=x3
f1*f3<=0
f1=f3

x2=x3
f2=f3

disp x3,tol,ite,e

end

4
III. Metode Secant

START

x1,x2,tol

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

N
Abs(f1) >abs( f2) x1=x1;f1=f1
x2=x3;f2=f3
Y

x1=x2 ; f1=f2
x2=x3 ; f2=f3

disp x3 ; tol ; ite ; e

end

You might also like