Given a set of points, polynomial interpolation is the task of finding a polynomial with lowest degree that passes through all the points. Assume the set
where the Lagrange polynomials
-
lagrange
Implement the functionlagrange : (float * float) list -> (float -> float)
that returns the interpolated polynomial$L$ .