Senin, 09 Februari 2009

Approximation with Lagrange Interpolation

Approximation is a method to know a function from a set of point that known. There are two kind of approximation. First is common approximation, well-known as interpolation, that the function must be through all point that known. Second is special approximation, that the function approaching the point that known.
One method that used in common approximation is Lagrange Interpolation. This methode produced a polinomial function. Give a set of point example (x1,y1), (x2,y2), (x3,y3)......(xn,yn). With Lagrange Interpolation we get polinomial P(x) below:Li(x) is Lagrange Function. This method implemented in Matlab so we get this script. x1, x2, x3...xn saved in bx. y1, y2, y3....yn saved in by. bx and by is array.