Polynomial interpolation workspace
Interpolate up to 20 points and export a sampled polynomial curve.
A clear answer. Here’s how.
Uses barycentric Lagrange interpolation after centring and scaling X to improve numerical behaviour. Supports 2–20 distinct, adequately separated X values; sorts points by X. First output row is the query, followed by 101 samples over the input range. High-degree interpolation and extrapolation can oscillate or be poorly conditioned; this does not perform regression or infer uncertainty.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- CSV: X,Y
X,Y 0,1 1,2 2,5 3,10
- Query X
- 1.5
Example result
| X | Interpolated Y |
|---|---|
| 1.5 | 3.25 |
| 0 | 1 |
| 0.03 | 1.0009 |
| 0.06 | 1.0036 |
| 0.09 | 1.0081 |
First row is your query; remaining rows sample the supplied X range. Barycentric polynomial interpolation; high degree or clustered points can be unstable. Avoid extrapolation.