Evaluating numerical algorithm
Stirling's formula interpolates near the middle of an equally spaced table, using central differences around the nearest point . It is the average of Gauss's forward and backward formulas.
From x = 1, 2, 3, 4, 5 and y = 1, 8, 27, 64, 125, estimate y at x = 3.2.
The differences around x₀: , , , .
The data come from , and exactly: with a cubic, the formula stops at Δ³ and is exact.
The calculator below opens on this table and tints the differences it used.