1D Interpolation Playground

We sample f at k nodes xi and rebuild it everywhere. Drag a sample vertically to perturb one yi and watch how far the change travels. Switch the nodes from equispaced to Chebyshev to tame the wiggles of the global polynomial.

 | 

Interpolants

Gray: true f(x). Dots: samples (xi, yi), draggable.

Basis functions φi(x)

f(x) = ∑i yi φi(x). Hover a node on the left to highlight its φi.