Lagrange Interpolation
Accepts:
arrX = an array of x coordinates.
arrY = an array of y coordinates.
order = the number of coordinates (size of arrX & arrY)
input = the x coordinate whose corresponding y value will be found
Returns a y value along the curve that touches each (x,y) pair from arrX
and arrY. The pair (input, sum) is a point on that curve.
Lagrange Interpolation Accepts: arrX = an array of x coordinates. arrY = an array of y coordinates. order = the number of coordinates (size of arrX & arrY) input = the x coordinate whose corresponding y value will be found Returns a y value along the curve that touches each (x,y) pair from arrX and arrY. The pair (input, sum) is a point on that curve.