SlideShare a Scribd company logo
1 of 39
METODE NUMERIK
INTERPOLASI
Tujuan
 Interpolasi berguna untuk menaksir harga-
harga tengah antara titik data yang sudah
tepat. Interpolasi mempunyai orde atau
derajat.
Macam Interpolasi
 Interpolasi Beda Terbagi Newton
 Interpolasi Lagrange
 Interpolasi Spline
Macam Interpolasi Beda
Terbagi Newton
 Interpolasi Linier
Derajat/orde 1 → memerlukan 2 titik
x f(x)
1 4,5
2 7.6
3 9.8
4 11.2
Berapa f(x = 1,325) = ?
Memerlukan 2 titik awal :
x = 1
x = 2
Macam Interpolasi Beda
Terbagi Newton
 Interpolasi Kuadratik
Derajat/orde 2 → memerlukan 3 titik
x = 1 → f(x = 1) = . . . .
x = 2 → f(x = 2) = . . . .
x = 3 → f(x = 3) = . . . .
f (x = 1,325) = ?
Macam Interpolasi Beda
Terbagi Newton
 Interpolasi Kubik
Derajat/orde 3 → memerlukan 4 titik
…
 Interpolasi derajat/orde ke-n
→ memerlukan n+1 titik
 Semakin tinggi orde yang digunakan untuk
interpolasi hasilnya akan semakin baik (teliti).
Interpolasi Linier
 Cara: menghubungkan 2 titik dengan sebuah
garis lurus
 Pendekatan formulasi interpolasi linier sama
dengan persamaan garis lurus.
( ) ( ) ( ) ( )
( )
( )0
01
01
01 xx
xx
xfxf
xfxf −
−
−
+=
Interpolasi Linier
 Prosentase kesalahan pola interpolasi linier :
narnyaHarga_sebe
narnyaHarga_sebeganl_perhitunHarga_hasi
εt
−
=
Interpolasi Linier (Ex.1)
 Diketahui suatu nilai tabel distribusi ‘Student
t’ sebagai berikut :
t5% = 2,015
t2,5% = 2,571
Berapa t4% = ?
Interpolasi Linier (Ex.1)
 Penyelesaian
x0 = 5  f(x0) = 2,015
x1 = 2,5  f(x1) = 2,571
x = 4  f(x) = ?
Dilakukan pendekatan dengan orde 1 :
( ) ( ) ( ) ( )
( )
( )0
01
01
01 xx
xx
xfxf
xfxf −
−
−
+=
( ) ( )
237,22374,2
54
55,2
015,2571,2
015,2
≈=
−
−
−
+=
Interpolasi Linier (Ex.2)
 Diketahui:
log 3 = 0,4771213
log 5 = 0,698700
 Harga sebenarnya:
log (4,5) = 0,6532125 (kalkulator).
 Harga yang dihitung dengan interpolasi:
log (4,5) = 0,6435078
%49,1%100
6532125,0
6532125,06435078,0
=∗
−
=tε
Interpolasi Linier
 Pendekatan interpolasi dengan derajat 1,
pada kenyataannya sama dengan mendekati
suatu harga tertentu melalui garis lurus.
 Untuk memperbaiki kondisi tersebut
dilakukan sebuah interpolasi dengan
membuat garis yang menghubungkan titik
yaitu melalui orde 2, orde 3, orde 4, dst, yang
sering juga disebut interpolasi kuadratik,
kubik, dst.
Interpolasi Kuadratik
 Interpolasi orde 2 sering disebut sebagai
interpolasi kuadratik, memerlukan 3 titik data.
 Bentuk polinomial orde ini adalah :
f2(x) = a0 + a1x + a2x2
dengan mengambil:
a0 = b0 – b1x0 + b2x0x1
a1 = b1 – b2x0 + b2x1
a2 = b2
Interpolasi Kuadratik
 Sehingga
f2(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1)
dengan
Pendekatan dengan
kelengkungan
Pendekatan dengan
garis linier
( )
( ) ( )
( )
[ ]
( ) ( )
( )
( ) ( )
( )
( )
[ ]012
02
01
01
12
12
2
01
01
01
1
00
,,
,
xxxf
xx
xx
xfxf
xx
xfxf
b
xxf
xx
xfxf
b
xfb
→
−
−
−
−
−
−
=
→
−
−
=
=
Interpolasi Kubik
 f3(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) + b3(x-x0)(x-x1)(x-x2)
dengan:
( )
( ) ( )
( )
[ ]
( )
( ) ( )
( )
( ) ( )
( )
( )
[ ]
( )
[ ]0123
03
012123
3
012
02
01
01
12
12
02
0112
2
01
01
01
1
00
,,,
],,[],,[
,,
],[],[
,
xxxxf
xx
xxxfxxxf
b
xxxf
xx
xx
xfxf
xx
xfxf
xx
xxfxxf
b
xxf
xx
xfxf
b
xfb
→
−
−
=
→
−
−
−
−
−
−
=
−
−
=
→
−
−
=
=
Interpolasi Beda Terbagi
Newton
 Secara umum:
f1(x) = b0 + b1(x-x0)
f2(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1)
f3(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) +
b3(x-x0)(x-x1)(x-x2)
…
fn(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) +
b3(x-x0)(x-x1)(x-x2) + … +
bn(x-x1)(x-x2)…(x-xn-1)
Interpolasi Beda Terbagi
Newton
Dengan:
 b0 = f(x0)
 b1 = f[x1, x0]
 b2 = f[x2, x1, x0]
…
 bn = f[xn, xn-1, xn-2, . . . ., x0]
Interpolasi Beda Terbagi
Newton (Ex.)
 Hitung nilai tabel distribusi ‘Student t’ pada
derajat bebas dengan α = 4%, jika diketahui:
t10% = 1,476 t2,5% = 2,571
t5% = 2,015 t1% = 3,365
dengan interpolasi Newton orde 2 dan orde
3!
Interpolasi Beda Terbagi
Newton (Ex.)
Interpolasi Newton Orde 2:  butuh 3 titik
 x0 = 5 f(x0) = 2,015
x1 = 2,5 f(x1) = 2,571
x2 = 1 f(x2) = 3,365
 b0 = f(x0) = 2,015
( ) ( )
( )
( ) ( )
( )
( )02
01
01
12
12
2
xx
xx
xfxf
xx
xfxf
b
−
−
−
−
−
−
=
( ) ( )
( )
222,0
55,2
015,2571,2
01
01
1 −=
−
−
=
−
−
=
xx
xfxf
b
077,0
51
55,2
015,2571,2
5,21
571,2365,3
=
−
−
−
−
−
−
=
Interpolasi Beda Terbagi
Newton (Ex.)
 f2(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1)
= 2,015 + (-0,222) (4-5) +
0,077 (4-5)(4-2,5)
= 2,121
Interpolasi Beda Terbagi
Newton (Ex.)
Interpolasi Newton Orde 3:  butuh 4 titik
 x0 = 5 f(x0) = 2,015
x1 = 2,5 f(x1) = 2,571
x2 = 1 f(x2) = 3,365
x3 = 10 f(x3) = 1,476
Interpolasi Beda Terbagi
Newton (Ex.)
 b0 = f(x0) = 2,015
b1 = -0,222 → f[x1,x0]
b2 = 0,077 → f[x2,x1,x0]
007,0
5
077,0043,0
510
077,0
5,210
5,21
571,2365,3
110
365,3476,1
3
−=
−
=
−
−
−
−
−
−
−
−
=b
Interpolasi Beda Terbagi
Newton (Ex.)
 f3(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) +
b3(x-x0)(x-x1)(x-x2)
= 2,015 + (-0,222)(4-5) +
0,077 (4-5)(4-2,5) +
(-0,007)(4-5)(4-2,5)(4-1)
= 2,015 + 0,222 + 0,1155 + 0,0315
= 2,153
Kesalahan Interpolasi Beda
Terbagi Newton
 Rn = |f[xn+1,xn,xn-1,…,x0](x-x0)(x-x1)…(x-xn)|
 Menghitung R1
Perlu 3 titik (karena ada xn+1)
R1 = |f[x2,x1,x0](x-x0)(x-x1)|
 Menghitung R2
Perlu 4 titik sebagai harga awal
R2 = |f[x3,x2,x1,x0](x-x0)(x-x1)(x-x2)|
Kesalahan Interpolasi Beda
Terbagi Newton (Ex.)
 Berdasarkan contoh:
R1 = |f[x2,x1,x0](x-x0)(x-x1)|
= |0.077 (4-5)(4-2.5)|
= 0.1155
R2 = |f[x3,x2,x1,x0](x-x0)(x-x1)(x-x2)|
= |-0.007 (4-5)(4-2.5)(4-1)|
= 0.0315
Interpolasi Lagrange
 Interpolasi Lagrange pada dasarnya
dilakukan untuk menghindari perhitungan
dari differensiasi terbagi hingga (Interpolasi
Newton)
 Rumus:
dengan
( ) ( ) ( )∑
=
=
n
i
iin xfxLxf
0
.
( ) ∏
≠
= −
−
=
n
ij
j ji
j
i
xx
xx
xL
0
Interpolasi Lagrange
 Pendekatan orde ke-1
f1(x) = L0(x)f(x0) + L1(x)f(x1)
( )
10
1
0
xx
xx
xL
−
−
= ( )
01
0
1
xx
xx
xL
−
−
=
( ) ( ) ( )1
01
0
0
10
1
1 xf
xx
xx
xf
xx
xx
xf
−
−
+
−
−
=∴
Interpolasi Lagrange
 Pendekatan orde ke-2
f2(x) = L0(x)f(x0) + L1(x)f(x1) + L2(x)f(x2)
( ) 







−
−








−
−
=
≠
=
= 20
2
10
1
2
0
0
xx
xx
xx
xx
xL
ij
n
i
( ) 





−
−








−
−
=
≠
=
= 21
2
01
0
2
1
1
xx
xx
xx
xx
xL
ij
n
i
( ) 





−
−








−
−
=
≠
=
= 12
1
02
0
2
2
2
xx
xx
xx
xx
xL
ij
n
i
( ) ( ) ( ) ( )2
12
1
02
0
1
21
2
01
0
0
20
2
10
1
2 xf
xx
xx
xx
xx
xf
xx
xx
xx
xx
xf
xx
xx
xx
xx
xf 





−
−








−
−
+





−
−








−
−
+







−
−








−
−
=∴
Interpolasi Lagrange
 Pendekatan orde ke-3
f3(x) = L0(x)f(x0) + L1(x)f(x1) + L2(x)f(x2) + L3(x)f(x3)
( ) ( ) ( ) +







−
−






−
−








−
−
+







−
−








−
−








−
−
= 1
31
3
21
2
01
0
0
30
3
20
2
10
1
2 xf
xx
xx
xx
xx
xx
xx
xf
xx
xx
xx
xx
xx
xx
xf
( ) ( )3
23
2
13
1
03
0
2
32
3
12
1
02
0
xf
xx
xx
xx
xx
xx
xx
xf
xx
xx
xx
xx
xx
xx








−
−








−
−








−
−
+







−
−






−
−








−
−
Interpolasi Lagrange (Ex.)
 Berapa nilai distribusi t pada α = 4 %?
α = 2,5 % → x0 = 2,5 → f(x0) = 2,571
α = 5 % → x1 = 5 → f(x1) = 2,015
α = 10 % → x2 = 10 → f(x2) = 1,476
Interpolasi Lagrange (Ex.)
 Pendekatan orde ke-1
f1(x) = L0(x)f(x0) + L1(x)f(x1)
( ) ( ) ( )1
01
0
0
10
1
1 xf
xx
xx
xf
xx
xx
xf
−
−
+
−
−
=
( ) ( )
237,2
015,2
5,25
5,24
571,2
55,2
54
=






−
−
+





−
−
=
Interpolasi Lagrange (Ex.)
 Pendekatan orde ke-2
f2(x) = L0(x)f(x0) + L1(x)f(x1) + L2(x)f(x2)
( ) ( ) ( )
214,2
476,1
510
54
5,210
5,24
015,2
105
104
5,25
5,24
571,2
105,2
104
55,2
54
=






−
−






−
−
+





−
−






−
−
+





−
−






−
−
=
( ) ( ) ( ) ( )2
12
1
02
0
1
21
2
01
0
0
20
2
10
1
2 xf
xx
xx
xx
xx
xf
xx
xx
xx
xx
xf
xx
xx
xx
xx
xf 





−
−








−
−
+





−
−








−
−
+







−
−








−
−
=∴
Interpolasi Spline
 Tujuan: penghalusan
 Interpolasi spline linear, kuadratik, kubik.
Interpolasi Cubic Spline
dimana Si adalah polinomial berderajat 3:
p(xi) = di + (x-xi) ci + (x-xi)2
bi + (x-xi)3
ai, i=1,2, …, n-1
Syarat: Si(xi) = Si+1(xi), Si’(xi) = Si+1’(xi), Si’’(xi) = Si+1’’(xi)
Interpolasi Cubic Spline
 Interpolasi spline kubik menggunakan
polinomial p(x) orde 3
p(x) = di + (x-xi) ci + (x-xi)2
bi + (x-xi)3
ai
 Turunan pertama dan kedua p(xi) yaitu:
p’(x) = ci + 2bi (x-xi) + 3ai (x-xi)2
p”(x) = 2bi + 6ai (x-xi)
Interpolasi Cubic Spline
 Evaluasi pada titik x=xi menghasilkan:
pi = p(xi) = di
pi”= p”(xi) = 2bi
 Evaluasi pada titik x=xi+1 menghasilkan:
pi = di + (xi+1-xi) ci + (xi+1-xi)2
bi + (xi+1-xi)3
ai
p(xi) = di + hi ci + hi
2
bi + hi
3
ai
p”i = 2bi + 6ai (xI+1-xi)
p”(xi+1) = 2bi + 6ai hi
dimana hi = (xI+1-xi)
Interpolasi Cubic Spline
 Jadi:
di = pi
 Sehingga:
2
"p
b i
i =
i
i1i
i
6h
p"p"
a
−
= +
6
p"2hp"h
h
pp
c ii1ii
i
i1i
i
+
−
−
= ++
Interpolasi Cubic Spline (Ex.)

More Related Content

What's hot

7905 bab 3
7905 bab 37905 bab 3
7905 bab 3muli ani
 
Interpolasi lagrange dan newton
Interpolasi lagrange dan newtonInterpolasi lagrange dan newton
Interpolasi lagrange dan newtonYuni Dwi Utami
 
interpolasi
interpolasi interpolasi
interpolasi apri nata
 
3. newton raphson method
3. newton raphson method3. newton raphson method
3. newton raphson methodokti agung
 
Matematika Teknik - Diferensial
Matematika Teknik - DiferensialMatematika Teknik - Diferensial
Matematika Teknik - DiferensialReski Aprilia
 
Matematika Diskrit: Fungsi pembangkit part 4
Matematika Diskrit: Fungsi pembangkit part 4Matematika Diskrit: Fungsi pembangkit part 4
Matematika Diskrit: Fungsi pembangkit part 4radar radius
 
Eksponen dan logaritma
Eksponen dan logaritmaEksponen dan logaritma
Eksponen dan logaritmayulika usman
 
Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)nikmahpolman
 
Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)mizhaphisari
 
Matdis-fungsi pembangkit
Matdis-fungsi pembangkitMatdis-fungsi pembangkit
Matdis-fungsi pembangkitCeria Agnantria
 
Integral Fungsi Rasional dengan Pecahan Parsial
Integral Fungsi Rasional dengan Pecahan ParsialIntegral Fungsi Rasional dengan Pecahan Parsial
Integral Fungsi Rasional dengan Pecahan ParsialFitria Maghfiroh
 
Kelompok5 3ia18
Kelompok5 3ia18Kelompok5 3ia18
Kelompok5 3ia18kasega
 

What's hot (19)

7905 bab 3
7905 bab 37905 bab 3
7905 bab 3
 
interpolasi
interpolasiinterpolasi
interpolasi
 
Interpolasi lagrange dan newton
Interpolasi lagrange dan newtonInterpolasi lagrange dan newton
Interpolasi lagrange dan newton
 
interpolasi
interpolasi interpolasi
interpolasi
 
Metnum ppt
Metnum pptMetnum ppt
Metnum ppt
 
3. newton raphson method
3. newton raphson method3. newton raphson method
3. newton raphson method
 
interpolasi
interpolasiinterpolasi
interpolasi
 
Makalah metode numerik
Makalah metode numerikMakalah metode numerik
Makalah metode numerik
 
Matematika Teknik - Diferensial
Matematika Teknik - DiferensialMatematika Teknik - Diferensial
Matematika Teknik - Diferensial
 
Metode newton
Metode newtonMetode newton
Metode newton
 
Matematika Diskrit: Fungsi pembangkit part 4
Matematika Diskrit: Fungsi pembangkit part 4Matematika Diskrit: Fungsi pembangkit part 4
Matematika Diskrit: Fungsi pembangkit part 4
 
Eksponen dan logaritma
Eksponen dan logaritmaEksponen dan logaritma
Eksponen dan logaritma
 
Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)
 
Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)Tugas matematika - Kelompok 3 (15-21)
Tugas matematika - Kelompok 3 (15-21)
 
Matdis-fungsi pembangkit
Matdis-fungsi pembangkitMatdis-fungsi pembangkit
Matdis-fungsi pembangkit
 
Integral Fungsi Rasional dengan Pecahan Parsial
Integral Fungsi Rasional dengan Pecahan ParsialIntegral Fungsi Rasional dengan Pecahan Parsial
Integral Fungsi Rasional dengan Pecahan Parsial
 
Presentasi interpolasi polinomial
Presentasi interpolasi polinomialPresentasi interpolasi polinomial
Presentasi interpolasi polinomial
 
15. soal soal diferensial
15. soal soal diferensial15. soal soal diferensial
15. soal soal diferensial
 
Kelompok5 3ia18
Kelompok5 3ia18Kelompok5 3ia18
Kelompok5 3ia18
 

Viewers also liked

interior_forest_analysis
interior_forest_analysisinterior_forest_analysis
interior_forest_analysisTammy Kobliuk
 
ESRI ERUC 2014 - Easy Automation for Process Efficiencies
ESRI ERUC 2014 - Easy Automation for Process EfficienciesESRI ERUC 2014 - Easy Automation for Process Efficiencies
ESRI ERUC 2014 - Easy Automation for Process EfficienciesTammy Kobliuk
 
GEOALBERTA 2015 - StAlbert - Do You Measure Up
GEOALBERTA 2015 - StAlbert - Do You Measure UpGEOALBERTA 2015 - StAlbert - Do You Measure Up
GEOALBERTA 2015 - StAlbert - Do You Measure UpTammy Kobliuk
 
InteriorForestAnalysisProcedure
InteriorForestAnalysisProcedureInteriorForestAnalysisProcedure
InteriorForestAnalysisProcedureTammy Kobliuk
 
Introducing - Fourth Force - Next level for Verification's
Introducing - Fourth Force - Next level for Verification'sIntroducing - Fourth Force - Next level for Verification's
Introducing - Fourth Force - Next level for Verification'sDipesh Arora
 
GEOALBERTA 2008 - GIS Priority Setting 101
GEOALBERTA 2008 - GIS Priority Setting 101GEOALBERTA 2008 - GIS Priority Setting 101
GEOALBERTA 2008 - GIS Priority Setting 101Tammy Kobliuk
 
CompositeVisibilityAnalysisProcedure
CompositeVisibilityAnalysisProcedureCompositeVisibilityAnalysisProcedure
CompositeVisibilityAnalysisProcedureTammy Kobliuk
 
portland2003_animated
portland2003_animatedportland2003_animated
portland2003_animatedTammy Kobliuk
 
PICTOMETRY 2014 - Integrating Pictometry Into Your Municipal Operations
PICTOMETRY 2014 - Integrating Pictometry Into Your Municipal OperationsPICTOMETRY 2014 - Integrating Pictometry Into Your Municipal Operations
PICTOMETRY 2014 - Integrating Pictometry Into Your Municipal OperationsTammy Kobliuk
 
Internet y derechos fundamentales
Internet y derechos fundamentalesInternet y derechos fundamentales
Internet y derechos fundamentalesalexandradance
 

Viewers also liked (20)

Presentación sfie
Presentación sfiePresentación sfie
Presentación sfie
 
interior_forest_analysis
interior_forest_analysisinterior_forest_analysis
interior_forest_analysis
 
ESRI ERUC 2014 - Easy Automation for Process Efficiencies
ESRI ERUC 2014 - Easy Automation for Process EfficienciesESRI ERUC 2014 - Easy Automation for Process Efficiencies
ESRI ERUC 2014 - Easy Automation for Process Efficiencies
 
GEOALBERTA 2015 - StAlbert - Do You Measure Up
GEOALBERTA 2015 - StAlbert - Do You Measure UpGEOALBERTA 2015 - StAlbert - Do You Measure Up
GEOALBERTA 2015 - StAlbert - Do You Measure Up
 
InteriorForestAnalysisProcedure
InteriorForestAnalysisProcedureInteriorForestAnalysisProcedure
InteriorForestAnalysisProcedure
 
PrésentationKnime-Final
PrésentationKnime-FinalPrésentationKnime-Final
PrésentationKnime-Final
 
Food for the Future
Food for the FutureFood for the Future
Food for the Future
 
douglas gallant
douglas gallantdouglas gallant
douglas gallant
 
Introducing - Fourth Force - Next level for Verification's
Introducing - Fourth Force - Next level for Verification'sIntroducing - Fourth Force - Next level for Verification's
Introducing - Fourth Force - Next level for Verification's
 
GEOALBERTA 2008 - GIS Priority Setting 101
GEOALBERTA 2008 - GIS Priority Setting 101GEOALBERTA 2008 - GIS Priority Setting 101
GEOALBERTA 2008 - GIS Priority Setting 101
 
Revista Emverde Corporación de Empresarios Verdes
Revista Emverde Corporación de Empresarios VerdesRevista Emverde Corporación de Empresarios Verdes
Revista Emverde Corporación de Empresarios Verdes
 
Douglas-Gallant-M.B.A
Douglas-Gallant-M.B.ADouglas-Gallant-M.B.A
Douglas-Gallant-M.B.A
 
Douglas-Gallant-M.B.A
Douglas-Gallant-M.B.ADouglas-Gallant-M.B.A
Douglas-Gallant-M.B.A
 
douglas gallant
douglas gallantdouglas gallant
douglas gallant
 
Casos de éxito Eco Lógica
Casos de éxito Eco LógicaCasos de éxito Eco Lógica
Casos de éxito Eco Lógica
 
CompositeVisibilityAnalysisProcedure
CompositeVisibilityAnalysisProcedureCompositeVisibilityAnalysisProcedure
CompositeVisibilityAnalysisProcedure
 
portland2003_animated
portland2003_animatedportland2003_animated
portland2003_animated
 
PICTOMETRY 2014 - Integrating Pictometry Into Your Municipal Operations
PICTOMETRY 2014 - Integrating Pictometry Into Your Municipal OperationsPICTOMETRY 2014 - Integrating Pictometry Into Your Municipal Operations
PICTOMETRY 2014 - Integrating Pictometry Into Your Municipal Operations
 
Pmkvy 2.0 2016
Pmkvy 2.0  2016Pmkvy 2.0  2016
Pmkvy 2.0 2016
 
Internet y derechos fundamentales
Internet y derechos fundamentalesInternet y derechos fundamentales
Internet y derechos fundamentales
 

Similar to INTERPOLASI_NUMERIK

Similar to INTERPOLASI_NUMERIK (20)

1.Metode Numerik Interpolasi.pdf
1.Metode Numerik Interpolasi.pdf1.Metode Numerik Interpolasi.pdf
1.Metode Numerik Interpolasi.pdf
 
Polinomial
PolinomialPolinomial
Polinomial
 
Bab 5 interpolasi newton lanjutan
Bab 5 interpolasi newton lanjutanBab 5 interpolasi newton lanjutan
Bab 5 interpolasi newton lanjutan
 
deret kuasa
deret kuasaderet kuasa
deret kuasa
 
relasi-dan-fungsi.ppt
relasi-dan-fungsi.pptrelasi-dan-fungsi.ppt
relasi-dan-fungsi.ppt
 
Relasi dan-fungsi
Relasi dan-fungsiRelasi dan-fungsi
Relasi dan-fungsi
 
relasi-dan-fungsi (1).ppt
relasi-dan-fungsi (1).pptrelasi-dan-fungsi (1).ppt
relasi-dan-fungsi (1).ppt
 
Met num 2
Met num 2Met num 2
Met num 2
 
Pertemuan-2.pptx
Pertemuan-2.pptxPertemuan-2.pptx
Pertemuan-2.pptx
 
Turunan matematika
Turunan matematikaTurunan matematika
Turunan matematika
 
70512820 materi-interpolasi
70512820 materi-interpolasi70512820 materi-interpolasi
70512820 materi-interpolasi
 
siiiiii
siiiiiisiiiiii
siiiiii
 
Matematika kelas xi turunan fungsi
Matematika kelas xi turunan fungsiMatematika kelas xi turunan fungsi
Matematika kelas xi turunan fungsi
 
3. fungsi kuadrat
3. fungsi kuadrat3. fungsi kuadrat
3. fungsi kuadrat
 
Persamaan non linier
Persamaan non linierPersamaan non linier
Persamaan non linier
 
MetNum3-Sistem_Persamaan_Non_Linier.ppt
MetNum3-Sistem_Persamaan_Non_Linier.pptMetNum3-Sistem_Persamaan_Non_Linier.ppt
MetNum3-Sistem_Persamaan_Non_Linier.ppt
 
Turunan1
Turunan1Turunan1
Turunan1
 
Tugas kalkulus 2 r
Tugas kalkulus 2 rTugas kalkulus 2 r
Tugas kalkulus 2 r
 
Turunan fungsi trigonometri.pdf
Turunan fungsi trigonometri.pdfTurunan fungsi trigonometri.pdf
Turunan fungsi trigonometri.pdf
 
Turunan
TurunanTurunan
Turunan
 

Recently uploaded

PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...
PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...
PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...Kanaidi ken
 
Diskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdf
Diskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdfDiskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdf
Diskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdfHendroGunawan8
 
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptxBab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptxssuser35630b
 
CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7IwanSumantri7
 
AKSI NYATA NARKOBA ATAU OBAT TERLARANG..
AKSI NYATA NARKOBA ATAU OBAT TERLARANG..AKSI NYATA NARKOBA ATAU OBAT TERLARANG..
AKSI NYATA NARKOBA ATAU OBAT TERLARANG..ikayogakinasih12
 
MODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptx
MODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptxMODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptx
MODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptxSlasiWidasmara1
 
Paparan Refleksi Lokakarya program sekolah penggerak.pptx
Paparan Refleksi Lokakarya program sekolah penggerak.pptxPaparan Refleksi Lokakarya program sekolah penggerak.pptx
Paparan Refleksi Lokakarya program sekolah penggerak.pptxIgitNuryana13
 
Integrasi nasional dalam bingkai bhinneka tunggal ika
Integrasi nasional dalam bingkai bhinneka tunggal ikaIntegrasi nasional dalam bingkai bhinneka tunggal ika
Integrasi nasional dalam bingkai bhinneka tunggal ikaAtiAnggiSupriyati
 
Perumusan Visi dan Prakarsa Perubahan.pptx
Perumusan Visi dan Prakarsa Perubahan.pptxPerumusan Visi dan Prakarsa Perubahan.pptx
Perumusan Visi dan Prakarsa Perubahan.pptxadimulianta1
 
Modul Projek - Batik Ecoprint - Fase B.pdf
Modul Projek  - Batik Ecoprint - Fase B.pdfModul Projek  - Batik Ecoprint - Fase B.pdf
Modul Projek - Batik Ecoprint - Fase B.pdfanitanurhidayah51
 
ppt-modul-6-pend-seni-di sd kelompok 2 ppt
ppt-modul-6-pend-seni-di sd kelompok 2 pptppt-modul-6-pend-seni-di sd kelompok 2 ppt
ppt-modul-6-pend-seni-di sd kelompok 2 pptArkhaRega1
 
Contoh Laporan Observasi Pembelajaran Rekan Sejawat.pdf
Contoh Laporan Observasi Pembelajaran Rekan Sejawat.pdfContoh Laporan Observasi Pembelajaran Rekan Sejawat.pdf
Contoh Laporan Observasi Pembelajaran Rekan Sejawat.pdfCandraMegawati
 
Refleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptx
Refleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptxRefleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptx
Refleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptxIrfanAudah1
 
LK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docx
LK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docxLK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docx
LK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docxPurmiasih
 
bab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ika
bab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ikabab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ika
bab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ikaAtiAnggiSupriyati
 
MAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdf
MAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdfMAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdf
MAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdfChananMfd
 
MODUL 1 Pembelajaran Kelas Rangkap-compressed.pdf
MODUL 1 Pembelajaran Kelas Rangkap-compressed.pdfMODUL 1 Pembelajaran Kelas Rangkap-compressed.pdf
MODUL 1 Pembelajaran Kelas Rangkap-compressed.pdfNurulHikmah50658
 
Bab 6 Kreatif Mengungap Rasa dan Realitas.pdf
Bab 6 Kreatif Mengungap Rasa dan Realitas.pdfBab 6 Kreatif Mengungap Rasa dan Realitas.pdf
Bab 6 Kreatif Mengungap Rasa dan Realitas.pdfbibizaenab
 
contoh penulisan nomor skl pada surat kelulusan .pptx
contoh penulisan nomor skl pada surat kelulusan  .pptxcontoh penulisan nomor skl pada surat kelulusan  .pptx
contoh penulisan nomor skl pada surat kelulusan .pptxHR MUSLIM
 
Keterampilan menyimak kelas bawah tugas UT
Keterampilan menyimak kelas bawah tugas UTKeterampilan menyimak kelas bawah tugas UT
Keterampilan menyimak kelas bawah tugas UTIndraAdm
 

Recently uploaded (20)

PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...
PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...
PELAKSANAAN + Link-Link MATERI Training_ "Effective INVENTORY & WAREHOUSING M...
 
Diskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdf
Diskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdfDiskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdf
Diskusi PPT Sistem Pakar Sesi Ke-4 Simple Naïve Bayesian Classifier .pdf
 
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptxBab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
 
CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7
 
AKSI NYATA NARKOBA ATAU OBAT TERLARANG..
AKSI NYATA NARKOBA ATAU OBAT TERLARANG..AKSI NYATA NARKOBA ATAU OBAT TERLARANG..
AKSI NYATA NARKOBA ATAU OBAT TERLARANG..
 
MODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptx
MODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptxMODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptx
MODUL P5 KEWIRAUSAHAAN SMAN 2 SLAWI 2023.pptx
 
Paparan Refleksi Lokakarya program sekolah penggerak.pptx
Paparan Refleksi Lokakarya program sekolah penggerak.pptxPaparan Refleksi Lokakarya program sekolah penggerak.pptx
Paparan Refleksi Lokakarya program sekolah penggerak.pptx
 
Integrasi nasional dalam bingkai bhinneka tunggal ika
Integrasi nasional dalam bingkai bhinneka tunggal ikaIntegrasi nasional dalam bingkai bhinneka tunggal ika
Integrasi nasional dalam bingkai bhinneka tunggal ika
 
Perumusan Visi dan Prakarsa Perubahan.pptx
Perumusan Visi dan Prakarsa Perubahan.pptxPerumusan Visi dan Prakarsa Perubahan.pptx
Perumusan Visi dan Prakarsa Perubahan.pptx
 
Modul Projek - Batik Ecoprint - Fase B.pdf
Modul Projek  - Batik Ecoprint - Fase B.pdfModul Projek  - Batik Ecoprint - Fase B.pdf
Modul Projek - Batik Ecoprint - Fase B.pdf
 
ppt-modul-6-pend-seni-di sd kelompok 2 ppt
ppt-modul-6-pend-seni-di sd kelompok 2 pptppt-modul-6-pend-seni-di sd kelompok 2 ppt
ppt-modul-6-pend-seni-di sd kelompok 2 ppt
 
Contoh Laporan Observasi Pembelajaran Rekan Sejawat.pdf
Contoh Laporan Observasi Pembelajaran Rekan Sejawat.pdfContoh Laporan Observasi Pembelajaran Rekan Sejawat.pdf
Contoh Laporan Observasi Pembelajaran Rekan Sejawat.pdf
 
Refleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptx
Refleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptxRefleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptx
Refleksi Mandiri Modul 1.3 - KANVAS BAGJA.pptx.pptx
 
LK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docx
LK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docxLK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docx
LK.01._LK_Peta_Pikir modul 1.3_Kel1_NURYANTI_101.docx
 
bab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ika
bab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ikabab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ika
bab 6 ancaman terhadap negara dalam bingkai bhinneka tunggal ika
 
MAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdf
MAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdfMAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdf
MAKALAH KELOMPOK 7 ADMINISTRASI LAYANAN KHUSUS.pdf
 
MODUL 1 Pembelajaran Kelas Rangkap-compressed.pdf
MODUL 1 Pembelajaran Kelas Rangkap-compressed.pdfMODUL 1 Pembelajaran Kelas Rangkap-compressed.pdf
MODUL 1 Pembelajaran Kelas Rangkap-compressed.pdf
 
Bab 6 Kreatif Mengungap Rasa dan Realitas.pdf
Bab 6 Kreatif Mengungap Rasa dan Realitas.pdfBab 6 Kreatif Mengungap Rasa dan Realitas.pdf
Bab 6 Kreatif Mengungap Rasa dan Realitas.pdf
 
contoh penulisan nomor skl pada surat kelulusan .pptx
contoh penulisan nomor skl pada surat kelulusan  .pptxcontoh penulisan nomor skl pada surat kelulusan  .pptx
contoh penulisan nomor skl pada surat kelulusan .pptx
 
Keterampilan menyimak kelas bawah tugas UT
Keterampilan menyimak kelas bawah tugas UTKeterampilan menyimak kelas bawah tugas UT
Keterampilan menyimak kelas bawah tugas UT
 

INTERPOLASI_NUMERIK

  • 2. Tujuan  Interpolasi berguna untuk menaksir harga- harga tengah antara titik data yang sudah tepat. Interpolasi mempunyai orde atau derajat.
  • 3. Macam Interpolasi  Interpolasi Beda Terbagi Newton  Interpolasi Lagrange  Interpolasi Spline
  • 4. Macam Interpolasi Beda Terbagi Newton  Interpolasi Linier Derajat/orde 1 → memerlukan 2 titik x f(x) 1 4,5 2 7.6 3 9.8 4 11.2 Berapa f(x = 1,325) = ? Memerlukan 2 titik awal : x = 1 x = 2
  • 5. Macam Interpolasi Beda Terbagi Newton  Interpolasi Kuadratik Derajat/orde 2 → memerlukan 3 titik x = 1 → f(x = 1) = . . . . x = 2 → f(x = 2) = . . . . x = 3 → f(x = 3) = . . . . f (x = 1,325) = ?
  • 6. Macam Interpolasi Beda Terbagi Newton  Interpolasi Kubik Derajat/orde 3 → memerlukan 4 titik …  Interpolasi derajat/orde ke-n → memerlukan n+1 titik  Semakin tinggi orde yang digunakan untuk interpolasi hasilnya akan semakin baik (teliti).
  • 7.
  • 8. Interpolasi Linier  Cara: menghubungkan 2 titik dengan sebuah garis lurus  Pendekatan formulasi interpolasi linier sama dengan persamaan garis lurus. ( ) ( ) ( ) ( ) ( ) ( )0 01 01 01 xx xx xfxf xfxf − − − +=
  • 9. Interpolasi Linier  Prosentase kesalahan pola interpolasi linier : narnyaHarga_sebe narnyaHarga_sebeganl_perhitunHarga_hasi εt − =
  • 10. Interpolasi Linier (Ex.1)  Diketahui suatu nilai tabel distribusi ‘Student t’ sebagai berikut : t5% = 2,015 t2,5% = 2,571 Berapa t4% = ?
  • 11. Interpolasi Linier (Ex.1)  Penyelesaian x0 = 5  f(x0) = 2,015 x1 = 2,5  f(x1) = 2,571 x = 4  f(x) = ? Dilakukan pendekatan dengan orde 1 : ( ) ( ) ( ) ( ) ( ) ( )0 01 01 01 xx xx xfxf xfxf − − − += ( ) ( ) 237,22374,2 54 55,2 015,2571,2 015,2 ≈= − − − +=
  • 12. Interpolasi Linier (Ex.2)  Diketahui: log 3 = 0,4771213 log 5 = 0,698700  Harga sebenarnya: log (4,5) = 0,6532125 (kalkulator).  Harga yang dihitung dengan interpolasi: log (4,5) = 0,6435078 %49,1%100 6532125,0 6532125,06435078,0 =∗ − =tε
  • 13. Interpolasi Linier  Pendekatan interpolasi dengan derajat 1, pada kenyataannya sama dengan mendekati suatu harga tertentu melalui garis lurus.  Untuk memperbaiki kondisi tersebut dilakukan sebuah interpolasi dengan membuat garis yang menghubungkan titik yaitu melalui orde 2, orde 3, orde 4, dst, yang sering juga disebut interpolasi kuadratik, kubik, dst.
  • 14. Interpolasi Kuadratik  Interpolasi orde 2 sering disebut sebagai interpolasi kuadratik, memerlukan 3 titik data.  Bentuk polinomial orde ini adalah : f2(x) = a0 + a1x + a2x2 dengan mengambil: a0 = b0 – b1x0 + b2x0x1 a1 = b1 – b2x0 + b2x1 a2 = b2
  • 15. Interpolasi Kuadratik  Sehingga f2(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) dengan Pendekatan dengan kelengkungan Pendekatan dengan garis linier ( ) ( ) ( ) ( ) [ ] ( ) ( ) ( ) ( ) ( ) ( ) ( ) [ ]012 02 01 01 12 12 2 01 01 01 1 00 ,, , xxxf xx xx xfxf xx xfxf b xxf xx xfxf b xfb → − − − − − − = → − − = =
  • 16. Interpolasi Kubik  f3(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) + b3(x-x0)(x-x1)(x-x2) dengan: ( ) ( ) ( ) ( ) [ ] ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) [ ] ( ) [ ]0123 03 012123 3 012 02 01 01 12 12 02 0112 2 01 01 01 1 00 ,,, ],,[],,[ ,, ],[],[ , xxxxf xx xxxfxxxf b xxxf xx xx xfxf xx xfxf xx xxfxxf b xxf xx xfxf b xfb → − − = → − − − − − − = − − = → − − = =
  • 17. Interpolasi Beda Terbagi Newton  Secara umum: f1(x) = b0 + b1(x-x0) f2(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) f3(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) + b3(x-x0)(x-x1)(x-x2) … fn(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) + b3(x-x0)(x-x1)(x-x2) + … + bn(x-x1)(x-x2)…(x-xn-1)
  • 18. Interpolasi Beda Terbagi Newton Dengan:  b0 = f(x0)  b1 = f[x1, x0]  b2 = f[x2, x1, x0] …  bn = f[xn, xn-1, xn-2, . . . ., x0]
  • 19. Interpolasi Beda Terbagi Newton (Ex.)  Hitung nilai tabel distribusi ‘Student t’ pada derajat bebas dengan α = 4%, jika diketahui: t10% = 1,476 t2,5% = 2,571 t5% = 2,015 t1% = 3,365 dengan interpolasi Newton orde 2 dan orde 3!
  • 20. Interpolasi Beda Terbagi Newton (Ex.) Interpolasi Newton Orde 2:  butuh 3 titik  x0 = 5 f(x0) = 2,015 x1 = 2,5 f(x1) = 2,571 x2 = 1 f(x2) = 3,365  b0 = f(x0) = 2,015 ( ) ( ) ( ) ( ) ( ) ( ) ( )02 01 01 12 12 2 xx xx xfxf xx xfxf b − − − − − − = ( ) ( ) ( ) 222,0 55,2 015,2571,2 01 01 1 −= − − = − − = xx xfxf b 077,0 51 55,2 015,2571,2 5,21 571,2365,3 = − − − − − − =
  • 21. Interpolasi Beda Terbagi Newton (Ex.)  f2(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) = 2,015 + (-0,222) (4-5) + 0,077 (4-5)(4-2,5) = 2,121
  • 22. Interpolasi Beda Terbagi Newton (Ex.) Interpolasi Newton Orde 3:  butuh 4 titik  x0 = 5 f(x0) = 2,015 x1 = 2,5 f(x1) = 2,571 x2 = 1 f(x2) = 3,365 x3 = 10 f(x3) = 1,476
  • 23. Interpolasi Beda Terbagi Newton (Ex.)  b0 = f(x0) = 2,015 b1 = -0,222 → f[x1,x0] b2 = 0,077 → f[x2,x1,x0] 007,0 5 077,0043,0 510 077,0 5,210 5,21 571,2365,3 110 365,3476,1 3 −= − = − − − − − − − − =b
  • 24. Interpolasi Beda Terbagi Newton (Ex.)  f3(x) = b0 + b1(x-x0) + b2(x-x0)(x-x1) + b3(x-x0)(x-x1)(x-x2) = 2,015 + (-0,222)(4-5) + 0,077 (4-5)(4-2,5) + (-0,007)(4-5)(4-2,5)(4-1) = 2,015 + 0,222 + 0,1155 + 0,0315 = 2,153
  • 25. Kesalahan Interpolasi Beda Terbagi Newton  Rn = |f[xn+1,xn,xn-1,…,x0](x-x0)(x-x1)…(x-xn)|  Menghitung R1 Perlu 3 titik (karena ada xn+1) R1 = |f[x2,x1,x0](x-x0)(x-x1)|  Menghitung R2 Perlu 4 titik sebagai harga awal R2 = |f[x3,x2,x1,x0](x-x0)(x-x1)(x-x2)|
  • 26. Kesalahan Interpolasi Beda Terbagi Newton (Ex.)  Berdasarkan contoh: R1 = |f[x2,x1,x0](x-x0)(x-x1)| = |0.077 (4-5)(4-2.5)| = 0.1155 R2 = |f[x3,x2,x1,x0](x-x0)(x-x1)(x-x2)| = |-0.007 (4-5)(4-2.5)(4-1)| = 0.0315
  • 27. Interpolasi Lagrange  Interpolasi Lagrange pada dasarnya dilakukan untuk menghindari perhitungan dari differensiasi terbagi hingga (Interpolasi Newton)  Rumus: dengan ( ) ( ) ( )∑ = = n i iin xfxLxf 0 . ( ) ∏ ≠ = − − = n ij j ji j i xx xx xL 0
  • 28. Interpolasi Lagrange  Pendekatan orde ke-1 f1(x) = L0(x)f(x0) + L1(x)f(x1) ( ) 10 1 0 xx xx xL − − = ( ) 01 0 1 xx xx xL − − = ( ) ( ) ( )1 01 0 0 10 1 1 xf xx xx xf xx xx xf − − + − − =∴
  • 29. Interpolasi Lagrange  Pendekatan orde ke-2 f2(x) = L0(x)f(x0) + L1(x)f(x1) + L2(x)f(x2) ( )         − −         − − = ≠ = = 20 2 10 1 2 0 0 xx xx xx xx xL ij n i ( )       − −         − − = ≠ = = 21 2 01 0 2 1 1 xx xx xx xx xL ij n i ( )       − −         − − = ≠ = = 12 1 02 0 2 2 2 xx xx xx xx xL ij n i ( ) ( ) ( ) ( )2 12 1 02 0 1 21 2 01 0 0 20 2 10 1 2 xf xx xx xx xx xf xx xx xx xx xf xx xx xx xx xf       − −         − − +      − −         − − +        − −         − − =∴
  • 30. Interpolasi Lagrange  Pendekatan orde ke-3 f3(x) = L0(x)f(x0) + L1(x)f(x1) + L2(x)f(x2) + L3(x)f(x3) ( ) ( ) ( ) +        − −       − −         − − +        − −         − −         − − = 1 31 3 21 2 01 0 0 30 3 20 2 10 1 2 xf xx xx xx xx xx xx xf xx xx xx xx xx xx xf ( ) ( )3 23 2 13 1 03 0 2 32 3 12 1 02 0 xf xx xx xx xx xx xx xf xx xx xx xx xx xx         − −         − −         − − +        − −       − −         − −
  • 31. Interpolasi Lagrange (Ex.)  Berapa nilai distribusi t pada α = 4 %? α = 2,5 % → x0 = 2,5 → f(x0) = 2,571 α = 5 % → x1 = 5 → f(x1) = 2,015 α = 10 % → x2 = 10 → f(x2) = 1,476
  • 32. Interpolasi Lagrange (Ex.)  Pendekatan orde ke-1 f1(x) = L0(x)f(x0) + L1(x)f(x1) ( ) ( ) ( )1 01 0 0 10 1 1 xf xx xx xf xx xx xf − − + − − = ( ) ( ) 237,2 015,2 5,25 5,24 571,2 55,2 54 =       − − +      − − =
  • 33. Interpolasi Lagrange (Ex.)  Pendekatan orde ke-2 f2(x) = L0(x)f(x0) + L1(x)f(x1) + L2(x)f(x2) ( ) ( ) ( ) 214,2 476,1 510 54 5,210 5,24 015,2 105 104 5,25 5,24 571,2 105,2 104 55,2 54 =       − −       − − +      − −       − − +      − −       − − = ( ) ( ) ( ) ( )2 12 1 02 0 1 21 2 01 0 0 20 2 10 1 2 xf xx xx xx xx xf xx xx xx xx xf xx xx xx xx xf       − −         − − +      − −         − − +        − −         − − =∴
  • 34. Interpolasi Spline  Tujuan: penghalusan  Interpolasi spline linear, kuadratik, kubik.
  • 35. Interpolasi Cubic Spline dimana Si adalah polinomial berderajat 3: p(xi) = di + (x-xi) ci + (x-xi)2 bi + (x-xi)3 ai, i=1,2, …, n-1 Syarat: Si(xi) = Si+1(xi), Si’(xi) = Si+1’(xi), Si’’(xi) = Si+1’’(xi)
  • 36. Interpolasi Cubic Spline  Interpolasi spline kubik menggunakan polinomial p(x) orde 3 p(x) = di + (x-xi) ci + (x-xi)2 bi + (x-xi)3 ai  Turunan pertama dan kedua p(xi) yaitu: p’(x) = ci + 2bi (x-xi) + 3ai (x-xi)2 p”(x) = 2bi + 6ai (x-xi)
  • 37. Interpolasi Cubic Spline  Evaluasi pada titik x=xi menghasilkan: pi = p(xi) = di pi”= p”(xi) = 2bi  Evaluasi pada titik x=xi+1 menghasilkan: pi = di + (xi+1-xi) ci + (xi+1-xi)2 bi + (xi+1-xi)3 ai p(xi) = di + hi ci + hi 2 bi + hi 3 ai p”i = 2bi + 6ai (xI+1-xi) p”(xi+1) = 2bi + 6ai hi dimana hi = (xI+1-xi)
  • 38. Interpolasi Cubic Spline  Jadi: di = pi  Sehingga: 2 "p b i i = i i1i i 6h p"p" a − = + 6 p"2hp"h h pp c ii1ii i i1i i + − − = ++