Tugas Pertemuan 5 - Risaldi

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 18

0.

00001
x1 x2 x3 x4 X1 cek X2 cek
METODE GAUSS SEIDEL 0 0 0 0
1 0.6 2.3272727 -0.987273 0.87886364
2 1.0301818 2.036938 -1.014456 0.98434122
3 1.006585 2.003555 -1.002527 0.99835095
4 1.000861 2.0002983 -1.000307 0.99984975
5 1.0000913 2.0000213 -1.000031 0.9999881
6 1.0000084 2.0000012 -1 0.99999922
7 1.0000007 2 -1 1 OK OK
8 1 2 -1 1 OK OK
9 1 2 -1 1 OK OK
10 1 2 -1 1 OK OK
11 1 2 -1 1 OK OK
12 1 2 -1 1 OK OK
13 1 2 -1 1 OK OK
14 1 2 -1 1 OK OK
15 1 2 -1 1 OK OK
16 1 2 -1 1 OK OK
17 1 2 -1 1 OK OK
18 1 2 -1 1 OK OK
19 1 2 -1 1 OK OK
20 1 2 -1 1 OK OK
21 1 2 -1 1 OK OK
22 1 2 -1 1 OK OK
23 1 2 -1 1 OK OK
24 1 2 -1 1 OK OK
25 1 2 -1 1 OK OK
1 2 -1 1 OK OK
1 2 -1 1 OK OK
1 2 -1 1 OK OK
x3 cek x4 cek x1 x2 x3 x4 X1 cek
1 2 -1 1
1 1 2 -1 1 OK
2 1 2 -1 1 OK
3 1 2 -1 1 OK
4 1 2 -1 1 OK
5 1 2 -1 1 OK
6 1 2 -1 1 OK
OK OK 7 1 2 -1 1 OK
OK OK 8 1 2 -1 1 OK
OK OK 9 1 2 -1 1 OK
OK OK 10 1 2 -1 1 OK
OK OK 11 1 2 -1 1 OK
OK OK 12 1 2 -1 1 OK
OK OK 13 1 2 -1 1 OK
OK OK 14 1 2 -1 1 OK
OK OK 15 1 2 -1 1 OK
OK OK 16 1 2 -1 1 OK
OK OK 17 1 2 -1 1 OK
OK OK 18 1 2 -1 1 OK
OK OK 19 1 2 -1 1 OK
OK OK 20 1 2 -1 1 OK
OK OK 21 1 2 -1 1 OK
OK OK 22 1 2 -1 1 OK
OK OK 23 1 2 -1 1 OK
OK OK 24 1 2 -1 1 OK
OK OK 25 1 2 -1 1 OK
OK OK 1 2 -1 1 OK
OK OK 1 2 -1 1 OK
OK OK 1 2 -1 1 OK
X2 cek x3 cek x4 cek

OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
OK OK OK
SOAL NO. 1 Bagian A
f(x)=2x^3+x^2-sin2x-3 Iterasi a c b f(a)
0 1 1.5 2 -0.9092974268
METODE BAGI DUA, ADA PADA 1 1 1.25 1.5 -0.9092974268
INTERVAL (-2,2) 2 1 1.125 1.25 -0.9092974268
3 1 1.0625 1.125 -0.9092974268
X F(x) 4 1.0625 1.09375 1.125 -0.3224877586
-3 -48.27942 5 1.09375 1.109375 1.125 -0.0026179265
-2 -15.7568 6 1.09375 1.1015625 1.109375 -0.0026179265
-1 -3.090703 7 1.09375 1.09765625 1.1015625 -0.0026179265
0 -3 8 1.09375 1.095703125 1.0976563 -0.0026179265
1 -0.909297 9 1.09375 1.0947265625 1.0957031 -0.0026179265
2 17.756802 10 1.09375 1.09423828125 1.0947266 -0.0026179265
3 60.279415 11 1.09375 1.093994140625 1.0942383 -0.0026179265
12 1.0939941 1.094116210938 1.0942383 -4.8547268E-05
13 1.0939941 1.094055175781 1.0941162 -4.8547268E-05
14 1.0939941 1.094024658203 1.0940552 -4.8547268E-05
15 1.0939941 1.094009399414 1.0940247 -4.8547268E-05
16 1.0939941 1.09400177002 1.0940094 -4.8547268E-05
17 1.0939941 1.093997955322 1.0940018 -4.8547268E-05
18 1.093998 1.093999862671 1.0940018 -8.3920202E-06
19 1.093998 1.093998908997 1.0939999 -8.3920202E-06
20 1.093998 1.093998432159 1.0939989 -8.3920202E-06
21 1.0939984 1.093998670578 1.0939989 -3.3725953E-06
22 1.0939987 1.093998789787 1.0939989 -8.6288136E-07
1.0939987 1.093998730183 1.0939988 -8.6288136E-07

f(x)=2x^3+x^2-sin2x-3 Iterasi x=2x^3-sin2x-3/-x x=x^2-sin2x-3/2x^2


METODE ITERASI TITIK TETAP 2 2
1 -6.87840124765396 0.219600311913491
2 -94.9259632730512 -35.0133854275298
3 -18021.8983169458 0.499098879526796
4 -649577637.892854 -7.20875274874573
5 -8.4390221530092E+017 0.480381079748516
6 -1.4243418979796E+036 -7.77597814583767
7 #VALUE! 0.476477418842609
8 #VALUE! -7.9022341803798
9 #VALUE! 0.475207460634922
10 #VALUE! -7.94393943275059
11 #VALUE! 0.474812713661582
12 #VALUE! -7.95696694331764
13 #VALUE! 0.474693182966104
14 #VALUE! -7.9609177399287
15 #VALUE! 0.474657324834099
16 #VALUE! -7.96210349009637
17 #VALUE! 0.474646599289226
18 #VALUE! -7.9624582095086
19 #VALUE! 0.474643394026617
20 #VALUE! -7.96256421959065
21 #VALUE! 0.474642436410216
22 #VALUE! -7.96259589195583
23 #VALUE! 0.47464215033203
24 #VALUE! -7.96260535378859
25 #VALUE! 0.47464206487112
26 #VALUE! -7.96260818035059
27 #VALUE! 0.474642039341334
28 #VALUE! -7.96260902473134
29 #VALUE! 0.474642031714823
30 #VALUE! -7.96260927697317
31 #VALUE! 0.474642029436557
32 #VALUE! -7.9626093523253
33 #VALUE! 0.474642028755971
34 #VALUE! -7.96260937483522
35 #VALUE! 0.47464202855266
36 #VALUE! -7.96260938155961
37 #VALUE! 0.474642028491925
38 #VALUE! -7.96260938356838
39 #VALUE! 0.474642028473782
40 #VALUE! -7.96260938416846
41 #VALUE! 0.474642028468362

f(x)=2x^3+x^2-sin2x-3 Iterasi a c b f(a)


METODE POSISI PALSU 1 1 1.048713841168 2 -0.9092974268
2 1.0487138 1.0726308992 2 -0.4579519367
3 1.0726309 1.084017877782 2 -0.2207426595
4 1.0840179 1.089359060922 2 -0.1041489901
5 1.0893591 1.091846801928 2 -0.0486419315
6 1.0918468 1.093001694012 2 -0.0226099547
7 1.0930017 1.093537012075 2 -0.010486404
8 1.093537 1.093784967458 2 -0.0048585541
9 1.093785 1.093899780724 2 -0.0022499901
10 1.0938998 1.093952935748 2 -0.0010417376
11 1.0939529 1.093977543156 2 -0.0004822716
12 1.0939775 1.093988934455 2 -0.0002232567
13 1.0939889 1.093994207652 2 -0.0001033494
14 1.0939942 1.093996648675 2 -4.7841711E-05
15 1.0939966 1.093997778648 2 -2.2146422E-05
16 1.0939978 1.093998301722 2 -1.0251785E-05
17 1.0939983 1.093998543858 2 -4.7456421E-06
18 1.0939985 1.093998655945 2 -2.1967987E-06

f(x)=2x^3+x^2-sin2x-3 x0 x1 f(x0) f'(x0) iterasi


f'(x)= 6x^2+2x-2cos2x 2 1.3941165 17.75680249531 29.307287
METODE NEWTON RAPHSON 1.3941165 1.1480916 4.016608981513 16.326028 1
1.1480916 1.0963644 0.596503513969 11.531719 2
1.0963644 1.0940036 0.02495354774 10.570032 3
1.0940036 1.0939988 5.12787897E-05 10.526597 4
1.0939988 1.0939988 2.18199236E-10 10.526507 5
1.0939988 1.0939988 0 10.526507 6
1.0939988 1.0939988 0 10.526507 7

SOAL NO. 2 Iterasi x=(-3x-5)/2x x=sqrt(-3x-5/2)


f(x)=2x^2+3x+5 3 3
METODE ITERASI TITIK TETAP 1 -2.33333333333333 Err:502
2 -0.428571428571429 Err:502
3 4.33333333333333 Err:502
4 -2.07692307692308 Err:502
5 -0.296296296296296 Err:502
6 6.93750000000001 Err:502
7 -1.86036036036036 Err:502
8 -0.156174334140436 Err:502
9 14.5077519379845 Err:502
10 -1.67232166711194 Err:502
11 -0.00507229011901897 Err:502
12 491.374015748044 Err:502
13 -1.50508777411885 Err:502
14 0.161032693899606 Err:502
15 -17.024797725601 Err:502
16 -1.3531553772154 Err:502
17 0.347533581209752 Err:502
18 -8.69354944433741 Err:502
19 -1.21243046168808 Err:502
20 0.561973926751422 Err:502
21 -5.9486049636709 Err:502
22 -1.07973339711278 Err:502
23 0.815386378419915 Err:502
24 -4.56603110643642 Err:502
25 -0.952478543898678 Err:502
26 1.1247310409398 Err:502
27 -3.72275362642349 Err:502

f(x)=2x^2+3x+5 x0 x1 f(x0) f'(x0) iterasi


f'(x)=4x+3 10 4.5348837 235 43
METODE NEWTON RAPHSON 4.5348837 1.709136 59.73499188751 21.139535 1
1.709136 0.0856288 15.96970002693 9.8365441 2
0.0856288 -1.491492 5.271551141869 3.3425154 3
-1.491492 0.1857412 4.974621159263 -2.965969 4
0.1857412 -1.317405 5.626223056395 3.7429647 5
-1.317405 0.6736317 4.518896916745 -2.26962 6
0.6736317 -0.718662 7.928454389635 5.6945268 7
-0.718662 -31.6474 3.876964125294 0.1253515 8
-31.6474 -16.16735 1913.1736242 -123.5896 9
-16.16735 -8.395838 479.2641221678 -61.66938 10
-8.395838 -4.446216 120.7926770336 -30.58335 11
-4.446216 -2.336016 31.19902651837 -14.78486 12
-2.336016 -0.932201 8.905891441727 -6.344063 13
-0.932201 4.4758443 3.94139404967 -0.728802 14
4.4758443 1.6775454 58.49389791737 20.903377 15
1.6775454 0.0647071 15.66095355285 9.7101817 16
0.0647071 -1.531724 5.202495179638 3.2588282 17
-1.531724 0.0983858 5.097185381408 -3.126897 18
0.0983858 -1.467682 5.314516768011 3.393543 19
-1.467682 0.2409919 4.905133636702 -2.870726 20
0.2409919 -1.23206 5.839129782943 3.9639675 21
-1.23206 1.0185746 4.3397637109 -1.92824 22
1.0185746 -0.41347 10.13071192132 7.0742982 23
-0.41347 -3.460381 4.101504565891 1.3461191 24
-3.460381 -1.747768 18.56732957879 -10.84152 25
-1.747768 -0.277967 5.866083486602 -3.991074 26
-0.277967 -2.566279 4.32062940898 1.8881301 27
-2.566279 -1.124769 10.47273705099 -7.265115 28
-1.124769 1.647544 4.155903019913 -1.499074 29
1.647544 0.0447127 15.37143487839 9.5901762 30
0.0447127 -1.571638 5.13813657712 3.1788508 31
-1.571638 0.018229 5.225176747183 -3.28655 32
0.018229 -1.626903 5.055351474587 3.0729158 33
-1.626903 -0.083711 5.412917059419 -3.507611 34
SOAL NO. 1 Bagian B
f(c) f(b) status 0.00001 f(x)=2x^2-COS2x-3
5.8588799919401 17.756802495
1.870277855896 5.8588799919 METODE BAGI DUA, ADA PADA
0.3352080531121 1.8702778559 INTERVAL (-3,3)
-0.322487758568 0.3352080531
-0.00261792654 0.3352080531 X F(x)
0.1640365766378 0.3352080531 -3 14.03983
0.0801464192286 0.1640365766 -2 5.6536436
0.0386237369837 0.0801464192 -1 -0.583853
0.0179678051835 0.038623737 0 -4
0.0076661677354 0.0179678052 1 -0.583853
0.0025219281298 0.0076661677 2 5.6536436
-4.85472683E-05 0.0025219281 3 14.03983
0.0012365534082 0.0025219281
0.0005939688151 0.0012365534
0.0002727022098 0.0005939688
0.0001120753299 0.0002727022
3.176349557E-05 0.0001120753
-8.39202017E-06 3.17635E-05 STOP
1.168570424E-05 3.17635E-05
1.646833673E-06 1.16857E-05 STOP
-3.372595341E-06 1.646834E-06 STOP
-8.62881357E-07 1.646834E-06 STOP
3.919760272E-07 1.646834E-06 STOP
-2.354526978E-07 3.91976E-07 STOP

f(x)=2x^2-COS2x-3
METODE ITERASI TITIK TETAP
f(c) f(b) e RA KET f(x)=2x^2-COS2x-3
-0.457951936708 17.756802495 METODE POSISI PALSU
-0.220742659483 17.756802495 0.0222976 LANJUT
-0.104148990059 17.756802495 0.0105044 LANJUT
-0.048641931548 17.756802495 0.0049031 LANJUT
-0.022609954737 17.756802495 0.0022785 LANJUT
-0.010486404019 17.756802495 0.0010566 LANJUT
-0.004858554097 17.756802495 0.0004895 LANJUT
-0.002249990054 17.756802495 0.0002267 LANJUT
-0.001041737567 17.756802495 0.000105 LANJUT
-0.000482271594 17.756802495 4.859E-05 LANJUT
-0.000223256698 17.756802495 2.249E-05 LANJUT
-0.000103349363 17.756802495 1.041E-05 LANJUT
-4.784171133E-05 17.756802495 4.82E-06 BERHENTI
-2.214642203E-05 17.756802495 2.231E-06 BERHENTI
-1.02517851E-05 17.756802495 1.033E-06 BERHENTI
-4.74564207E-06 17.756802495 4.781E-07 BERHENTI
-2.196798701E-06 17.756802495 2.213E-07 BERHENTI
-1.016916872E-06 17.756802495 1.025E-07 BERHENTI

f(x)=2x^2-COS2x-3
f'(x)= 4x+2 sin 2x
METODE NEWTON RAPHSON

x=-2x^2-5 Nama : Resky Fadila Amin


3 Kelas : C/22
-23 Nim : 220101512001
-1063
-2259943
-10214684726503
-2.08679568E+26
-8.70943243E+52
-1.5170843E+106
-4.6030893E+212
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
#NUM!
)=2x^2-COS2x-3 Iterasi a c b f(a) f(c) f(b)
0 1 1.5 2 -0.5838531635 2.4899924966 5.6536436209
BAGI DUA, ADA PADA 1 1 1.25 1.5 -0.5838531635 0.92614361555 2.4899924966
NTERVAL (-3,3) 2 1 1.125 1.25 -0.5838531635 0.15942362272 0.9261436155
3 1 1.0625 1.125 -0.5838531635 -0.2159211653 0.1594236227
4 1.0625 1.09375 1.125 -0.2159211653 -0.0290726757 0.1594236227
5 1.09375 1.109375 1.125 -0.0290726757 0.06498187342 0.1594236227
6 1.09375 1.1015625 1.109375 -0.0290726757 0.01790467368 0.0649818734
7 1.09375 1.09765625 1.1015625 -0.0290726757 -0.0055966749 0.0179046737
8 1.0976563 1.099609375 1.1015625 -0.0055966749 0.00615085508 0.0179046737
9 1.0976563 1.0986328125 1.0996094 -0.0055966749 0.00027630101 0.0061508551
10 1.0976563 1.09814453125 1.0986328 -0.0055966749 -0.0026603846 0.000276301
11 1.0981445 1.098388671875 1.0986328 -0.0026603846 -0.0011920912 0.000276301
12 1.0983887 1.098510742188 1.0986328 -0.0011920912 -0.0004579074 0.000276301
13 1.0985107 1.098571777344 1.0986328 -0.0004579074 -9.0806286E-05 0.000276301
14 1.0985718 1.098602294922 1.0986328 -9.0806286E-05 9.274659E-05 0.000276301
15 1.0985718 1.098587036133 1.0986023 -9.0806286E-05 9.6995933E-07 9.274659E-05
16 1.0985718 1.098579406738 1.098587 -9.0806286E-05 -4.4918211E-05 9.699593E-07
17 1.0985794 1.098583221436 1.098587 -4.4918211E-05 -2.1974138E-05 9.699593E-07
18 1.0985832 1.098585128784 1.098587 -2.1974138E-05 -1.0502092E-05 9.699593E-07
19 1.0985851 1.098586082458 1.098587 -1.0502092E-05 -4.7660673E-06 9.699593E-07
20 1.0985861 1.098586559296 1.098587 -4.7660673E-06 -1.8980542E-06 9.699593E-07
21 1.0985866 1.098586797714 1.098587 -1.8980542E-06 -4.6404746E-07 9.699593E-07
22 1.0985868 1.098586916924 1.098587 -4.6404746E-07 2.5295592E-07 9.699593E-07
1.0985868 1.098586857319 1.0985869 -4.6404746E-07 -1.0554577E-07 2.529559E-07

)=2x^2-COS2x-3 Iterasi x=cos2x+3/2x x= sqrtcos2x+3


E ITERASI TITIK TETAP 2 2
1 2.34635637913639 1.53178209257596
2 3.49645234353194 1.41528890220688
3 6.57078632382342 1.43107529815174
4 12.6128951062528 1.42786222047683
5 25.1985089357465 1.42848969665765
6 50.2881815162604 1.42836608905313
7 100.550456634066 1.42839039772962
8 201.062716260749 1.42838561559516
9 402.125308169518 1.42838655630107
10 804.249772607828 1.42838637125002
11 1608.49615450735 1.42838640765226
12 3216.99148471048 1.42838640049141
13 6433.98178242616 1.42838640190005
14 12867.9635598533 1.42838640162295
15 25735.927086565 1.42838640167746
16 51471.8540528728 1.42838640166674
17 102943.708091804 1.42838640166885
18 205887.416146548 1.42838640166843
19 411774.832292934 1.42838640166852
20 823549.664584797 1.4283864016685
21 1647099.32916577 1.4283864016685
22 3294198.65833115 1.4283864016685
23 6588397.31666119 1.4283864016685
24 13176794.6333224 1.4283864016685
25 26353589.2666446 1.4283864016685
26 52707178.5332891 1.4283864016685
27 105414357.066578 1.4283864016685
28 210828714.133157 1.4283864016685
29 421657428.266313 1.4283864016685
30 843314856.532626 1.4283864016685

)=2x^2-COS2x-3 Iterasi a c b f(a) f(c) f(b)


ODE POSISI PALSU 1 1 1.093603761836 2 -0.5838531635 -0.0299510487 5.6536436209
2 1.0936038 1.098380231554 2 -0.0299510487 -0.001242854 5.6536436209
3 1.0983802 1.098578393221 2 -0.001242854 -5.1014162E-05 5.6536436209
4 1.0985784 1.098586526887 2 -5.1014162E-05 -2.0929787E-06 5.6536436209
5 1.0985865 1.098586860591 2 -2.0929787E-06 -8.5867895E-08 5.6536436209

)=2x^2-COS2x-3 x0 x1 f(x0) f'(x0) iterasi


x)= 4x+2 sin 2x 2 1.1283843 5.653643620864 6.486395
E NEWTON RAPHSON 1.1283843 1.0986988 0.179928015008 6.0611443 1
1.0986988 1.0985869 0.000673384236 6.0148456 2
1.0985869 1.0985869 1.03694573E-08 6.0146604 3
1.0985869 1.0985869 0 6.0146603 4
1.0985869 1.0985869 0 6.0146603 5
1.0985869 1.0985869 0 6.0146603 6
1.0985869 1.0985869 0 6.0146603 7
status 0.00001

STOP

STOP
STOP
STOP
STOP
STOP
e RA KET

0.00434865 LANJUT
0.00018038 LANJUT
7.4038E-06 BERHENTI
3.0376E-07 BERHENTI
0.00001
METODE JACOBI x1 x2 x3 x4 X1 cek X2 cek
0 0 0 0
1 0.6 2.2727273 -1.1 1.875
2 1.0472727 1.7159091 -0.805227 0.88522727
3 0.9326364 -1.049341 1.13088068
4 0.8098682 -1.173439 1.74383239 OK
5 0.8346878 -1.08759 1.7283201 OK
6 0.8175181 -1.094106 1.7390512 OK
7 0.8188211 -1.089598 1.73823681 OK
8 0.8179197 -1.089941 1.73880019 OK
9 0.8179881 -1.089704 1.73875743 OK
10 0.8179408 -1.089722 1.73878701 OK
11 0.8179444 -1.089709 1.73878477 OK OK
12 0.8179419 -1.08971 1.73878632 OK OK
13 0.8179421 -1.08971 1.7387862 OK OK
14 0.8179419 -1.08971 1.73878628 OK OK
15 0.817942 -1.08971 1.73878628 OK OK
16 0.817942 -1.08971 1.73878628 OK OK
17 0.817942 1.7738067 -1.08971 1.73878628 OK
18 1.0000001 2 -1 0.99999975
19 0.9999999 2 -1 1.00000011 OK OK
20 1 2 -1 1 OK OK
21 1 2 -1 1 OK OK
22 1 2 -1 1 OK OK
23 1 2 -1 1 OK OK
24 1 2 -1 1 OK OK
25 1 2 -1 1 OK OK
1 2 -1 1 OK OK
1 2 -1 1 OK OK
1 2 -1 1 OK OK

METODE GAUSS SEIDEL


x3 cek x4 cek

OK
OK OK
OK OK
OK OK
OK OK
OK OK
OK OK

OK OK
OK OK
OK OK
OK OK
OK OK
OK OK
OK OK
OK OK
OK OK
OK OK

You might also like