Polynomial interpolation

Evaluate the interpolating polynomial through points with distinct horizontal coordinates.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

P(x)=Σyᵢ∏ⱼ≠ᵢ(x−xⱼ)/(xᵢ−xⱼ)

Default points follow x²+x+1, giving 4.75 at x=1.5.

Use 2–12 distinct horizontal coordinates; extrapolated values can be unstable.

Frequently asked questions

Can interpolation repeat an x coordinate?

No: a denominator would be 0. Reconcile measurements at the same position before interpolation.

Is interpolation reliable outside the data range?

The value is computed, but outside the data range it is extrapolation. More points can increase oscillation or error.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors