Lagrangian

Interpolates data using the Lagrange method.

Downloads:

Basic program (liberty basic 2) - lagrang.bas

 

Test Case:

Number of known points:  7

x,y of point 1 = -3,-15

x,y of point 2 = -2,1

x,y of point 3 = -1,5

x,y of point 4 = 0,3

x,y of point 5 = 1,1

x,y of point 6 = 2,5

x,y of point 7 = 3,21

Interpolate for x= -1.65,  y= 3.457875

Interpolate for x=.2, y=2.408