Curve Fitting
27 Interpolasi
Metoda Newton
Metoda Lagrange
Interpolasi
28
f(x)
f(x1)
f1(x)
f(x0)
x
x0 x x1
Interpolasi Kuadratik: Metoda Newton
31
Interpolasi Kuadratik: Metoda Newton
32
Interpolasi Polinomial: Metoda Newton
33
Interpolasi Polinomial: Metoda Newton
34
Interpolasi Polinomial: Metoda Newton
35
Interpolasi Polinomial: Metoda Newton
36
langkah hitungan
i xi f(xi)
ke-1 ke-2 ke-3
2 x2 f(x2) f[x3,x2]
3 x3 f(x3)
Interpolasi Polinomial: Metoda Lagrange
37
Contoh interpolasi
38
2.1
i xi f(xi) 1.8
1.5
0 1 0.0
1.2
f(x)
1 4 1.386294 0.9
2 6 1.791759 0.6
Persamaan exact f(x) = ln (x) 0.3
Ln (2) = 0.693147 0.0
0 1 2 3 4 5 6 7
X
Ditanya: f(2) = ..? dengan imterpolasi
Contoh Interpolasi Newton
38 a
1. Linier Interpolation
Contoh Interpolasi Newton
38 b
2. Quadratic Interpolation
Second order polinomial
2. Quadratic Interpolation
Third order polinomial
Contoh Interpolasi Lagrange
38 b
polinomial orde n
n» n=1
n=1 n»
Linear Splines
42