Interpolation has fallen by the wayside since the computer has replaced the use of precise mathematical
tables, but the technique is still important in the analysis of laboratory data, for making predictions about
the outcome of experiments that measure the values of some quantity between bracketing known values
as a function of some parameter.
Suppose that you have a table or array of the values of a function
| x | y(x) |
| x0 | y(x0) = y0 |
| x1 | y(x1) = y1 |
| x2 | y(x2) = y2 |
| x3 | y(x3) = y3 |
| ... | ... |
One can perform a linear interpolation to obtain y(xi + α) for α < xi+1 - xi by assuming that the curve is well approximated by a straight line between adjacent points listed in the table

are evenly spaced with xi+1 -xi = δ, the Lagrange interpolation can provide
better accuracy. Notice that










