You are on page 1of 7
Namo: Wyant Sorarde NPM: 2006 574295 “Tugas ed Kelas ; Kompotasi Momerik. 03 Al The “divide ord avage” method , an old-time rarthod ir apprexnating number a, Can be formulated of $e Sport rot Of Any positive x+ Vr Rte 2 Wate @ well- Grvctured function Xe Ay implement this algorithm — based On the algodthm — outlined in Fg 4.2 Answer Function [fi , ea, ite] . SpRoot(x, es , marit ) he Stace trot finction do [fe , ca, iter] + Sf0oe (x, @s, marit) fo input fo X= Value at which Series ewalvated % e@8+= Stopping eritunation (default = 0, 0091) % maxit : maximum itenations (‘defaule +50) do ovtpet : to fx: pstimated valve te ea = Appmximate relotive enor C%) fo itan + number of itenations 4h, defaules : if nagin <2 | isempty (es), €s = 0.000) j end if margin <3 | isemety (maxit) , maxit = 50 3 ene to Jritia tization Her =I 5 Sel=13 ea: (00; b Trermtive Colwtotion while (1) Solold = Sol 5 Noma: Wirganata Sonardé Wem : 2006574295 Kelas : Kompotasi Numerik 03 Sol = (Sl t sol) /2 ; Hen = ite th5 If Sol “= 0 @a= Abs ((Sol- solld)/s01 )* too 5 end if ea <= eS | itn 7 maxi, break, end end fx Sols end. NPM ; 2006524295 Kelas : Womputasi umn OF 4.13, Use Zero through Ahird - order Taylor series hepensiont to predice 413) Nama: Wiryanota Senards for £0) + 25x3 ~ 6x? 42x -29 Using A loose point at ny Compute tha tre percent relative ere Br doch —opraxiation Answer Flin) = FO) + FO) + PE + FE GH + 2! 3I Xin s 3 Xios he Mite Xi = 3-022 *) Ze onler fe) = fay & osc 6(1)* +401) - 8B fa) = “bay Percent relative erme : fe» | A ee , = 1913 | a [x {00 1 by +) First Order fay ¥ £0) + FO)hb % 62 + (3.25(0)? -2(6)(1) + 9). 2 £0) £18, Percent relative ertor: be (| X 100 J, = 85,4205 fe / Nama * Wiryanats Svnacci NPM: 2006524295 Kelas * Komputasi umerite 3 +) Second Orler faye Fh Prey he 43) = 2! x -62 + ap s.25co" - 2060 44) +4 ps0) J 2 40) £ 3547 Boncont relative error: Ges | Bt [x toot = 36 toile 554 +) Thied Order £3) % fae FOAt LOM + LHF 2! 3/ x 354 + 2°F 150 estes fx = ee Pencont relative @rroc: Be | EE [xr = o4 554 ) Concent relative error in table : order | fo ftir | [eel Ul, 19033) O_| 25x3-bx40-82] ~ 62 L__ | t5x*-axrt | 78 | 85,%205% 2 150X - 12 354 | 36, (01% 150 554 | O% | Nama: Wiryanott Sunordi Nema : 2006594295 Kelas : Komputasi AJummnik 03 ANY To Calwite a planet's space Coordinates , we have zo Solve the fonction £U)2 K-1- O55inx Lee te base point be a= Xi = Ae On He interval [on], Detormne Khe highest “Orde Taylor senieS expansion fesuiting in a gna kimum eror Of 0,015 on Ane Specfied imtenval. ~The gner is £pvod ky Hes absote — volue Of the dittmence between the given Function And Ant Specific Taylor Series expansion An Swer : f(x) = X- 1 - 0,5sinx $'(x) = 1 0,5 8x £°(x) = 0,55inx $f" (x) = 0,5 @S% Taylor Series Expansion £oin) = Paid + fuihe FO . FUN 4, 2! 3! he Die Hil h= [xin - 2) foda imtsnvol [v,0] max h= 2 (sot Xier 20 atau Xitt za) ) fe y= FB) Sect nso > F°(2)F I food net > F°(4)°0,5 Sook nee > F(A): Saat ne3 9 (4) + 05 dan Setnusnya Nama : Wiryanota Sun arc NPM ; 20065R4295 Kelas : Komputasi Mumsnike 03 max £° Uy) err = Ro error = fea Us) yt! (nei)! error Imax ft!) : er fe) ce)" (mtr)! 0,06 7 1 (2 nt (nar) r) +) Sask n=o : 0,015 7 _t (2 ore (ot! ae 0,015 % 145907 (Tidak rmgmenvis ) +) Sat n=l: 0, 015 ao al (2)° — teamenvhi ) *) Soak n+2: 0,015 Z + GY 0,015 7, 0,6459 (Tidak — Mbmenuhi ) *) Soak ned? 0,05 7 a ae Al (3)" Qos 7 0,256 (Tidae memowhi ) *) Sat n=A: 0015 % (4)" 0,015 70,0989 (Tae manent) 1) Saat eB! 6 0,015 7 ae (4) 0,015 7 0, 0208 (Tdak Memenvv ) +) Soot n= 6= ai ( ) z 9, 015 7 0, 00468 (Memenvhi ) , Te highest - Order Taylor Suw2s — Bkpansion maximum = error Oo 0,015 is 6m onder Alama: Wirganata Sonardi Pm : 2006874295 Kelas : Kompotasi xumanik 03 resuiting in a

You might also like