Newton-interpolation

Vad?
Diskret mängd datapunkter
(x_0, y_0), (x_1, y_1), ..., (x_n, y_n)
(x0,y0),(x1,y1),...,(xn,yn)
- Kvadratiska polynom
- Spline-interpolation
- Newton-interpolation
- Linjär interpolation
- Polynominterpolation
f_{n-1}(x)=b_1+b_2(x-x_1)+b_3(x-x_1)(x-x_2)+
...+b_n(x-x_1)(x-x_2)...(x-x_{n-1})
fn−1(x)=b1+b2(x−x1)+b3(x−x1)(x−x2)+...+bn(x−x1)(x−x2)...(x−xn−1)
b_1=f(x_1)
b1=f(x1)
b_3=f[x_3,x_2,x_1]
b3=f[x3,x2,x1]
b_2=f[x_2,x_1]
b2=f[x2,x1]
b_n=f[x_n,x_{n-1},...,x_2,x_1]
bn=f[xn,xn−1,...,x2,x1]
Vad?
f[x_i,x_j]=\frac{f(x_i)-f(x_j)}{x_i-x_j}
f[xi,xj]=xi−xjf(xi)−f(xj)
f[x_i,x_j,x_k]=\frac{f[x_i,x_j]-f[x_j,x_k]}{x_i-x_k}
f[xi,xj,xk]=xi−xkf[xi,xj]−f[xj,xk]
f[x_n,x_{n-1},...,x_2,x_1]=\frac{f[x_n,x_{n-1},...,x_2]-f[x_{n-1},x_{n-2},...,x_1]}{x_n-x_1}
f[xn,xn−1,...,x2,x1]=xn−x1f[xn,xn−1,...,x2]−f[xn−1,xn−2,...,x1]
f_{n-1}(x)=f(x_1)+(x-x_1)f[x_2,x_1]+(x-x_1)(x-x_2)f[x_3,x_2,x_1]
fn−1(x)=f(x1)+(x−x1)f[x2,x1]+(x−x1)(x−x2)f[x3,x2,x1]
+...+(x-x_1)(x-x_2)...(x-x_{n-1})f[x_n,x_{n-1},...,x_2,x_1]
+...+(x−x1)(x−x2)...(x−xn−1)f[xn,xn−1,...,x2,x1]

Image source: https://en.wikipedia.org/wiki/Newton_polynomial
Vad?




Hur?


Hur?


f(x) = 2x^2
f(x)=2x2


f(x) = sin(x)
f(x)=sin(x)


f(x) = \frac{1}{1 + 25x^2}
f(x)=1+25x21


Tack!
Newton-interpolering
By Jakob von Essen
Newton-interpolering
- 389