Interpolation Function
interpolate(x, x0, x1, y0, y1)
Returns the y-coordinate of the point on the specified line whose x-coordinate is x. The specified line is the line containing both the points (x0, y0) and (x1, y1). If x0 equals x1, the function returns y0.