You are on page 1of 9
Nese oats Sum Nr 2a iomiicodb — Me Kaa? Mensa Marat Pose Moma : ut — Suan poruenn sidknon sense mnggelan fart Maprin Sues rere Shoat furah. ttmperome Doo preteen dines, “Nan fat_bne Fongane CF) [420 | F00 [Geo | 200 [B00 | 900 [1000 [veo Popaye (1) [4 [3 [me |i | | 9 | a0 | as Tanner ret inerplee Neeren db layne (ou?) b Tenner fiona poapnp nnn inane lanpuotve “0- NOO"F © Goenen enw meginiy fernntine fepeyen gota sempermur 70°F ~PENYELESAT/ 4 Moka Terps Nesom don bewronoe Corte 2) = Megat ietarpetsr Newnan (och #) So ed= be 5.00 be $20): by -¥e) 5) 2) (n-m) (noms) + bs . JOE by RIO IG “yt ) en) 0-7) + by COMIO IOC) oe SC] be + FL ra tur _ by FLAK Ke Ke) - ~ Dipindai dengan CamScanner ese : be 5 [Xe X42, XH He) : = be $ [Xe He Kay by S [20 Ree re) Pur inerqint lege (ore 9) Tarps Levorm ote nh © LG FG) LODHI +L O05 GH) + Ly COSGU)# Ly GOS C4) # be LOSE) + Gdshu) +h G9 be) = Ce) O02) Om OKA) Gre) OO) : 89a) GX) OG) OG a) = Ke) Gee) Oe) Lee GR) GG) Gag) G4) 0) Gon) 00%) “a ESS EE ES Le ee Boe OK) e969) OQ) Oe) GH) KH) O5-90) 05-34) Goin) C6564) OG) OG%8) O56) Uys O67 0) 0565) 96) GF) OD 0) C4 =%1) (Ka= Xa) Ka KA) Ge Xe) a) aXe) (KK) Les 9) 2) 5) OOK) 067) HG) OK). G6) 052%) OX) OO OKO) Ue OK KK) OKO Ka DOK OEM KG ) CHK) KKK 5) HE Xa) RK) Oe = YOKE) Lye OR) OR) 0) OG) OK OK) 0%) TG) OG Ks 0G = XO GG HOGG) Dipindai dengan CamScanner Menu tebe Wels Nein Baym rerpienen tan pan pasion a di 20 BE eter rete ie Lapome sc a -Ass9¥33 30 Perojoian tone tole pacer a dkqoue tort beter i 5s) w 8 4 * 3 19 20 By ado fetes Ings Neston ode [uth mut menjihingy peniraie tapopn rrenyiraton _intarpie_peliwrn enqemtur 380°F Se} arsattnre or ester 0 bamsnssiss¥e| Dipindai dengan CamScanner Boas temns ai tater Yeruod menseanon Luepdien -taiban liner jypte bes § 0%): UN __ bas $ [om bye § [a,Xa,X1 Xe] + My cece F-07 eon eens] aXe Xe]? 1G, C667 Ee 1, bye SF [Xe Xe Xa My Xa Xe Ke] SF GEE CE be S[Xy,Xe Xe Ma Ka Xe Ke Ke | > 396026 6-17 Sevegoe porary Helene akioh Fy x)= M4 0,02 CxK0)4 (0100005) (X= Ko) HL) 4 NE 6GbEE ~ 07 Ch-%0) (4%) Ks) (0) (Km) OH) OAD HK) + (U6 EE IE 12 Hy) OH) CHIC) Cea) 4 (55,555 65576 6-15) Oe) (xo¥ OKA) OK 4) (Ka) COs ) © Raw|aF EA (KM) (KH) Oa) OH OH) CoH WHHL) eos Ve gertameon membinion nila tepein fewor Dipindai dengan CamScanner A. Listing Interpolasi Newton Matlab UTS Metode Numerik xNIM, 2211011110006, | xPROOT MATEMATIKA | xinterpolasi Newton clear al cle format longs x=[400 See 600 760 800 900 1000 1100]; ye[a1 13 14 15 17 19 20 23); nesize(x, xcarte: thex(2)-x(2 fprintf(‘Interpolasi Newton\n" ); Rinisialisasi nilai y for jetin ybaru(j,2)=¥(3)5 end Aenghitung delta y for i=2zn for je ybaru(j, i)=ybaru(j,i-1)-ybaru(j-1,4-1)5 ynew(J,i)=ybaru(j,i)5 af is delta(i-1)=ynew(5,4); end end end fprint€(‘Tabel Newton\n"); yeybaru deltavo=[delta (i)=ybaru(a, 1); for j= kal-kal*h; end kalisfactorial(i)*kal; c(i#1)adelta(s)/kali; end fprintf(‘Nilai C\n")5 cele(:)] anenghitung nilat Q total-0; for 4-2:n sumte1; for jx2:4 kal ix(4)=(xcart-x(5-2))5 ‘sumX=sumx*kal iX(); end Dipindai dengan CamScanner Total-totalse(i)*sueX end fprantf(°wilai Q\n")s Qqc(1)+total for Jatin y¥CH)=¥I)5 end yy (nea) =9: PlOt(x,yy, "0" yx2,y2); grid on; Jegend(*koordinat (x,y)", "Curva Interpolasi' ,4)5 Title(*Fungsi Interpolasi Newton’); B. Output Interpolasi Newton Matlab UTS Metode Numerik ee ee . | a A | | Dipindai dengan CamScanner oo ust @ eo News con eG Dipindai dengan CamScanner lee OO WT 23 C. Listing Interpolasi Newton Matlab UTS Metode Numerik Wraditya Eka Saputra ‘NIM. 2211011110006 ‘PRODI MATEMATIKA RInterpolasi Lagrange clear 311; ccs format longe; x=[420 500 68@ 700 800 90 1000 1100); y=[11 13 14 15 17 19 20 23); nesize(x,2); xcari=780; fprintf(‘Interpolasi Lagrange\n"); print é(‘--———~\n" )5 fprint€(" x y L\n)s Fprint#(‘~---—---~~\n"); Xmenghitung nilai L for jelin fprint#("x6.4f %10.4F* ,x(J).¥(5))5 tota(j)=! totb(j)= for if juni a(i)=xcari-x(4); bCA)= (5) C1) 5 else a(i)=1} b(i)= end tota(j)=tota(j)*a(i); totb(J)=totb(3)*b(i); end L(j)=tota(j)/totb(j); fprint#(‘x10.4F\n" ,L(3))5 end print (‘mmm \" fprintf (‘untuk nilai x : fprint#("x5.4f\n" ,xcard); a0; Dipindai dengan CamScanner Wa); QQety (i); end Q (me) 9Q5 x(nea)excarts vepolyfit (xy sa! x1eS00; yiepolyval (v,x1); PLO (XV, "O° /ALAVTDE grid on5 Legend('Koordinat (x,y)","Curva Interpolasi"); Title(‘Fungsi Interpolasi Lagrange* ) D. Output Interpolasi Newton Matlab UTS Metode Numerik Frowet 11,0000 15.0000 37,0000 39.0000 -0.0899 29,0000 0.0163 22,0000 -0.0016 x: 790.0000 16.54e71106 ‘fe Gt View tet Took Oesitop Window Hep 5 Devo OBRG Dipindai dengan CamScanner

You might also like