šŸ“ˆ Interpolation Lab — Between the Data Points

Paste a table of x,y readings and ask for values in between. Linear interpolation rides the segments; the Lagrange polynomial threads every point at once and prints its expanded formula. Goes backwards too — give it a y and it finds x — and it says so out loud when you drift outside the data and start extrapolating.

Data points

One point per line as x, y. Duplicate x values are rejected — a function can't have two answers.

Query

Ready.
linear segments Lagrange polynomial queries

Degree-8 Lagrange through equally spaced points oscillates wildly near the ends (Runge's phenomenon) — that's the price of one smooth polynomial; cubic splines exist because of it. Use the linear answer outside the data range with suspicion.