Expand description
Polynomial interpolation through n points: the Lagrange form (direct evaluation)
and the Newton divided-difference form (build coefficients once, evaluate cheaply).
Functionsยง
- lagrange_
eval - Evaluate the Lagrange interpolating polynomial through
(xs, ys)atx. - newton_
coefficients - Newton divided-difference coefficients for
(xs, ys)(the leading diagonal of the divided-difference table). Use withnewton_eval. - newton_
eval - Evaluate the Newton form (Horner over the nested products) at
x.