Lagrange’s formula is a classical formula for constructing an interpolation polynomial. It allows us to obtain a unique polynomial of degree that passes through a given set of nodes :
where:
- are the coordinates of the nodes,
- are the function values at these points,
- is the Lagrange basis polynomial for each point, which equals 1 when and 0 when for .