THE GARDEN
Updated 01 Oct 2026
builds the interpolating polynomial using divided differences
f[xi,xi+1]=(f(xi+1)−f(xi))/(xi+1−xi)f[x_i,x_{i+1}]=(f(x_{i+1})-f(x_i))/(x_{i+1}-x_i).
Higher divided differences apply this difference-quotient rule recursively.
Pn(x)=f[x0]+∑k=1nf[x0,…,xk]∏j=0k−1(x−xj)P_n(x)=f[x_0]+\sum_{k=1}^{n}f[x_0,\ldots,x_k]\prod_{j=0}^{k-1}(x-x_j).
For (0,1),(1,3),(3,25),(4,49)(0,1),(1,3),(3,25),(4,49): P3(x)=1+2x+3x(x−1)+13x(x−1)(x−3)P_3(x)=1+2x+3x(x-1)+\frac13x(x-1)(x-3).
nested multiplication evaluates the polynomial efficiently
adding a point can extend the divided-difference representation without rebuilding all earlier coefficients
Newton-Gregory formulas specialize the construction to equally spaced nodes
Polynomial Interpolation
◌ Explore connections in Graph view
Paths through the garden