Overview
Lagrange interpolation gives a direct formula for the polynomial through samples, making the role of each point explicit.
Builds an interpolating polynomial as a weighted sum of basis polynomials.
Compact metadata for implementation and discovery.
Lagrange interpolation gives a direct formula for the polynomial through samples, making the role of each point explicit.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n^2)
Average
O(n^2)
Worst
O(n^2)
Space
O(n)
L_i(x) = product_{j != i} (x - x_j) / (x_i - x_j)Builds interpolation weights from sample locations.
Show the numeric approximation improving against the target function, matrix, or state.
Lagrange Interpolation should be used with the assumptions and tradeoffs of interpolation in mind.
What each reference supports for this entry.
Numerical methods reference covering Lagrange interpolation and interpolation error behavior.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Newton interpolation uses divided differences instead of Lagrange bases.
Lagrange interpolation constructs the polynomial from basis functions.