Anda di halaman 1dari 5

Ronny Rezeki Tri Putra Purba

131.01.3044
Carilah nilai x yang memenuhi f(x) = x3 - 8
Cara Bisection
xa = 0.5

xb = 5

xa

xm

xb

xa

ym

0.5
0.5
1.625
1.625
1.90625
1.90625
1.9765625
1.9765625
1.994140625
1.994140625
1.9985351563
1.9985351563
1.9996337891

2.75
1.625
2.1875
1.90625
2.046875
1.9765625
2.01171875
1.994140625
2.0029296875
1.9985351563
2.0007324219
1.9996337891
2.0001831055

5
2.75
2.75
2.1875
2.1875
2.046875
2.046875
2.01171875
2.01171875
2.0029296875
2.0029296875
2.0007324219
2.0007324219

-7.875
-7.875
-3.708984375
-3.708984375
-1.0730895996
-1.0730895996
-0.2779669762
-0.2779669762
-0.0701067075
-0.0701067075
-0.0175652535
-0.0175652535
-0.0043937266

12.796875
-3.708984375
2.4675292969
-1.0730895996
0.5757865906
-0.2779669762
0.1414505839
-0.0701067075
0.0352077736
-0.0175652535
0.0087922815
-0.0043937266
0.0021974668

Hasil yang diperoleh:


x = (1.999634+2.000732)/2 =

2.0001831055

yb
117
12.796875
12.796875
2.4675292969
2.4675292969
0.5757865906
0.5757865906
0.1414505839
0.1414505839
0.0352077736
0.0352077736
0.0087922815
0.0087922815

Cara Newton-Raphson
Turunan f(x) = x3-8 adalah f'(x) = 3x2
xold = -2
xold = x0

f(x0)

f'(x0)

xn=xnew

-2
-0.6666666667
5.5555555556
3.7901037037
2.7123736593
2.1707171266
2.0130741649
2.000084728
2.0000000036
2

-16
-8.2962962963
163.4677640604
46.4444079534
11.9548539941
2.228446981
0.1579178165
0.001016779
4.3070566E-008
0

12
1.3333333333
92.5925925926
43.0946582545
22.0709126033
14.1360385315
12.1574027803
12.0010167575
12.0000000431
12

-0.6666666667
5.5555555556
3.7901037037
2.7123736593
2.1707171266
2.0130741649
2.000084728
2.0000000036
2
2

Maka nilai yang memenuhi adalah x = 2

xold = 10
xold = x0

f(x0)

f'(x0)

xn=xnew

10
6.6933333333
4.5217450869
3.1449204441
2.3662319535
2.0537589301
2.0013949087
2.000000972
2
2

992
291.866093037
84.4524077725
23.1049130173
5.2486596739
0.6626026607
0.0167505822
1.1663781E-005
5.6701310E-012
0

300
134.402133333
61.3385358938
29.6715737997
16.7971609729
12.6537772284
12.0167447422
12.0000116638
12
12

6.6933333333
4.5217450869
3.1449204441
2.3662319535
2.0537589301
2.0013949087
2.000000972
2
2
2

Maka nilai yang memenuhi adalah x = 2

Carilah nilai x yang memenuhi persamaan x.e 0.5x - 5 = 0


xold = x0

eps

x+eps

x-eps

f(x0)

f(x+eps)

f(x-eps)

1
2.35510207
1.98085544
1.9186746
1.91717357
1.91717271
1.91717271

0.001
0.001
0.001
0.001
0.001
0.001
0.001

1.001
2.3561021
1.9818554
1.9196746
1.9181736
1.9181727
1.9181727

0.999
2.3541021
1.9798554
1.9176746
1.9161736
1.9161727
1.9161727

-3.3512787
2.64563656
0.33322711
0.00767602
4.350E-006
1.765E-012
0

-3.3488046
2.6527084
0.3385881
0.0127918
0.0051143
0.0051099
0.0051099

-3.3537508
2.6385699
0.3278701
0.0025642
-0.0051017
-0.0051061
-0.0051061

f'(x0)

xn = xnew

2.4730821
7.0692329
5.3589998
5.1138047
5.1080108
5.1080075
5.1080075

2.35510207
1.98085544
1.9186746
1.91717357
1.91717271
1.91717271
1.91717271

Anda mungkin juga menyukai