Lagrange Interpolationspolynom pur
Author: Prof. Dr. Dörte Haftendorn
Date: Mai 06

Ha Mai 06

Interpolationspolynom, ziehe an den Punkten

A = (0, 0.5)
B = (2, 1)
D = (4.996296296296297, 1.5)
c0 = -0.015
C = (3.5, 2.5)
c1 = 0.11
la1(x) = (x - x(A)) * (x - x(C)) * (x - x(D))
c2 = 0.055
c3 = 0.065
la0(x) = (x - x(B)) * (x - x(C)) * (x - x(D))
la3(x) = (x - x(A)) * (x - x(B)) * (x - x(C))
la(x) = y(A) / ((x(A) - x(B)) * (x(A) - x(C)) * (x(A) - x(D))) * (x - x(B)) * (x - x(C)) * (x - x(D)) + y(B) / ((x(B) - x(A)) * (x(B) - x(C)) * (x(B) - x(D))) * (x - x(A)) * (x - x(C)) * (x - x(D)) + y(C) / ((x(C) - x(A)) * (x(C) - x(B)) * (x(C) - x(D))) * (x - x(A)) * (x - x(B)) * (x - x(D)) + y(D) / ((x(D) - x(A)) * (x(D) - x(B)) * (x(D) - x(C))) * (x - x(A)) * (x - x(B)) * (x - x(C))
la0c(x) = c0 * la0(x)
la1c(x) = c1 * la1(x)
la2(x) = (x - x(A)) * (x - x(B)) * (x - x(D))
la2c(x) = c2 * la2(x)
la3c(x) = c3 * la3(x)
p(x) = la0c(x) + la1c(x) + la2c(x) + la3c(x)