Interpolasi
Tujuan
Macam Interpolasi
Interpolasi
Perbedaan Interpolasi dan Ekstrapolasi
Macam Interpolasi Beda Terbagi Newton
Derajat/orde 1 → memerlukan 2 titik
Derajat/orde 2 → memerlukan 3 titik
Derajat/orde 3 → memerlukan 4 titik
→ memerlukan n+1 titik
x0
x1
x
f(x)
L(x)
Interpolasi Linier
Interpolasi Kudrat
x0
x1
x
f(x)
x2
h
h
L(x)
Interpolasi Qubic
x0
x1
x
f(x)
x2
h
h
L(x)
x3
h
Interpolasi dg Polinomial
Interpolasi dg Polinomial
Figure : Higher order polynomial interpolation is a bad idea
Original
Function
16
th
Order
Polynomial
8
th
Order
Polynomial
4
th
Order
Polynomial
Uji Coba
Interpolasi Kuadratik
Interpolasi Polinom derajat 4
Interpolasi Polinom derajat 4
Contoh 2 :
Titik2 yang digunakan untuk menghitung interpolasi n = 3
(-3,-63) (3,-9)
(0,0) (-2,-24)
Contoh 2 :
Hasil
Interpolasi Linier
Interpolasi Linier
Contoh :
Contoh :
Example
The upward velocity of a rocket is given as a function of time in Table 1. Find the velocity at t=16 seconds using linear splines.
t | v(t) |
s | m/s |
0 | 0 |
10 | 227.04 |
15 | 362.78 |
20 | 517.35 |
22.5 | 602.97 |
30 | 901.67 |
Table : Velocity as a
function of time
Figure : Velocity vs. time data
for the rocket example
Linear Interpolation
Interpolasi Kuadrat
F(x) = ax2 + bx + c
Interpolasi Kuadrat
Interpolasi Kuadrat (Versi lain)
Contoh :
c = 0.6762
Interpolasi Qubic
x0
x1
x
f(x)
x2
h
h
L(x)
x3
h
Interpolasi Qubic
Metode Lain
Polinom Lagrange
Polinom Lagrange
Contoh :
Xi | 0.0 | 0.4 | 0.8 | 1.2 |
yi | 1 | 0.921061 | 0.696707 | 0.362358 |
Contoh :
Polinom Newton
Polinom Newton
Polinom Newton
Polinom Newton
Polinom Newton
Polinom Newton
Polinom Newton
Contoh Soal :
xi | yi | ST-1 | ST-2 | ST-3 | ST-4 |
0.0 | 1 | -0.4597 | -0.2484 | 0.1466 | -0.0147 |
1.0 | 0.5403 | -0.9564 | 0.1913 | 0.0880 | |
2.0 | -0.4161 | -0.5739 | 0.4551 | | |
3.0 | -0.99 | 0.3363 | | | |
4.0 | -0.6536 | | | | |
xi | yi | ST-1 | ST-2 | ST-3 | ST-4 |
0.0 | | | | | |
1.0 | | | | | |
2.0 | | | | | |
3.0 | | | | | |
4.0 | | | | | |
xi | yi | ST-1 | ST-2 | ST-3 | ST-4 |
0.0 | 1 | -0.4597 | | | |
1.0 | 0.5403 | -0.9564 | | | |
2.0 | -0.4161 | -0.5739 | | | |
3.0 | -0.99 | 0.3363 | | | |
4.0 | -0.6536 | | | | |
xi | yi | ST-1 | ST-2 | ST-3 | ST-4 |
0.0 | 1 | -0.4597 | -0.2484 | | |
1.0 | 0.5403 | -0.9564 | 0.1913 | | |
2.0 | -0.4161 | -0.5739 | 0.4551 | | |
3.0 | -0.99 | 0.3363 | | | |
4.0 | -0.6536 | | | | |
Contoh Soal :
Contoh Soal :