Professional Documents
Culture Documents
METODE NUMERIK
1
SOLUSI
PERSAMAAN NON LINIER
METODE BISECTION
4
Metode Bisection
Metode Bisection
(lanjutan)
Metode Bisection
(lanjutan)
Metode Bisection
(lanjutan)
Metode Bisection
(lanjutan)
Y
f(b)
y=f(x)
f(c)
a
f(a)
c= (a + b)
9
Bisection Iteration
(algorithm)
1.
2.
3.
4.
5.
Algoritma Bisection
(1)
Algoritma Bisection
(2)
IF F(X0)=0 THEN
OUTPUT (X0)
ELSE IF F(X1) = 0 THEN
OUTPUT (X1)
ELSE
OUTPUT (X2)
ENDIF
12
F(x) = x2 +2x 1
i
f(b)
f(c )
f(a)*f(c
)
Interva
l
baru
lebar
interval
< 0.0001
[a,c]
1.50000
[a,c]
0.75000
[c,b]
0.37500
[c,b]
0.18750
[a,c]
0.09375
[a,c]
0.04688
[a,c]
0.02344
[c,b]
0.01172
[c,b]
0.00586
[c,b]
0.00293
10
[c,b]
0.00146
11
[c,b]
0.00073
12
[c,b]
0.00037
13
[c,b]
0.00018
14
[a,c]
0.00009
15
[a,c]
0.00005
F(c) = -0.00004
13
KEUNTUNGAN BISECTION
14
KELEMAHAN BISECTION
SOLUSI
PERSAMAAN NON LINIER
x x0
y f ( x0 )
x1 x0 f ( x1 ) f ( x0 )
18
( x1 x0 )
x2 x0
f ( x0 )
f ( x1 ) f ( x0 )
19
Pengulangan/iterasi mencari X2
dan interval baru dilakukan
berdasarkan nilai toleransi atau
bila akarnya belum ditemukan
Sebaiknya nilai toleransi secara
relatif mengacu pada : error
aproksimasi
21
x1 x2
T
x1
atau
x0 x2
T
x0
25
F(x) = x2 +2x 1
f(a)
f(b)
f(c )
f(a)*f(c
)
interva
l
baru
lebar
interval
< 0.0001
[a,c]
1.00000
[a,c]
1.00000
[a,c]
0.33333
[a,c]
0.06667
[a,c]
0.01176
[a,c]
0.00203
[a,c]
0.00035
[a,c]
0.00006
F(c) = -0.00004
26
SOLUSI
PERSAMAAN NON LINIER
METODE SEKAN
27
Metode Sekan
Metode Sekan
(lanjutan)
29
Metode Sekan
(lanjutan)
30
Algoritma Sekan
i=0
Found = false
REPEAT
i=i+1
X2 = X0 (X1 X0)*F(X0)/(F(X1) F(X0))
X0 = X1
X1 = X2
31
Algoritma Sekan
(lanjutan)
IF | (X0- X1)/ X0| T
i = Max
Found = true
ENDIF
UNTIL
(Found = true)
OUTPUT (X2)
OR
THEN
32
33
F(x) = x2 +2x 1
f(a)
f(b)
f(c )
f(a)*f(
c)
14.0000
10.888
0 5.0000 -3.00000
2.00000 0.77778
2.66667
0
89
0
0.2314
1 3.0000 -2.66667
2.00000 0.77778 0.11570
2.45455
0
0
0.0071
2 2.6666 -2.45455
0.77778 0.11570 0.00924
2.41748
8
7
0.0000
3 2.4545 -2.41748
0.11570 0.00924 0.00013
2.41426
1
5
0.0000
4 2.4174 -2.41426
0.00924 0.00013 0.00000
0
Solusinya
adalah2.41421
x = c = -2.41421
F(c) = -0.00000
8
34
0.0000
lebar
interval
< 0.0001
2.00000
0.33333
0.21212
0.03707
0.00322
SOLUSI
PERSAMAAN NON LINIER
Syaratnya:
konvergen ke akarnya.
Jika g(x) [a, b] dan g(x) k dgn k< 1 Utk
setiap
x [a, b] , maka titik tetap tersebut tunggal
dan
36
37
CONTOH KASUS
CONTOH:
f(x) = x e1/x ;
bentuk x = g(x), yaitu: f(x) = x e1/x
dapat ditulis: f(x) = 0 x e1/x = 0
shg didapat x = g(x), antara lain:
a.
b.
c.
x = e1/x
x = e1/x ln x = 1/x (ln e) x = 1/ln x
x = e1/x 2x = x + e1/x x = 1/2(x + e1/x)
38
CONTOH KASUS
(lanjutan)
ambil x0 = 1.5
periksa kekonvergenan iterasi:
a.
39
Example One
exp(-x)-x=0
The fixed point iteration : x= exp(x) or Pn+1=exp(Pn). n=0,1,2,3,...
P1=exp (-0.5)=0.606531
P2=exp (-0.606531)=0.545239,
P3=exp (-0.545239)=0.579703
P10=exp (-P9)=0.566907
Pn=0.567143
Example Two
g(x)=1+x- x2/4
The fixed point of g(x) are 2 and -2.
P1=g(P0)=-2.100625
P2=g(P1)=-2.20378135
P3=g(P2)=-2.4179441
Pn= -
P1=g(P0)=1.96
P2=g(P1)= 1.9996
P3=g(P2)= 1.99999996
Pn= 2
Theorem
44
Exercise One
SOLUSI
PERSAMAAN NON LINIER
METODE NEWTON-RAPHSON
46
METODE NEWTON-RAPHSON
Gambar Grafik
48
METODE NEWTON-RAPHSON
(lanjutan)
METODE NEWTON-RAPHSON
(lanjutan)
50
Contoh kasus
F(x) = 2x +2
F(x) = x2 +2x 1
xi
f(xi)
f'(xi)
f(xi)<0.00001
-5.00000
14.00000
-8.00000
TIDAK
-3.25000
3.06250
-4.50000
TIDAK
-2.56944
0.46316
-3.13889
TIDAK
-2.42189
0.02177
-2.84378
TIDAK
-2.41423
0.00006
-2.82847
TIDAK
-2.41421
0.00000
-2.82843
YA
51
F(c) = -0.00000
PENUTUP
52