This script generates a quadratic polynomial from three points. The x coordinates x_{1} through x_{4} must all be different. The script will also interpolate (or even extrapolate!) to give a y value for any x coordinate, x_{5}. Just for the sake of example, the page automatically loads width the results from the three points (-1,-1), (2,2) and (3,1) with an interpolation to x=2.5.

y=1+1.5x

-0.5x^{2}

y(x_{4})=1.625

y=1+1.5*x

-0.5*x**2