Neville algorithm

From HandWiki
Revision as of 10:45, 5 August 2021 by imported>PolicyEnforcerIA (attribution)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This algorithm is a schematic recursive way of evaluating the coefficients of a polynomial of order n-1 from n known function values

File:Hepa img723.gif

Given the n pairs (xi,yi), one procedes schematically:

  • - first find the n ``polynomials of order zero going through the n function values at Hepa img493.gif , i.e. simply the yi;
  • - next obtain from these the n-1 polynomials of order one going through the pairs (xi,yi) and (xi+1,yi+1);
  • - next the n-2 polynomials of order two going through the triplets (xi,yi), (xi+1,yi+1) and (xi+2,yi+2);
  • - etc.,

until one reaches the required single polynomial of order n-1 going through all points.

The recursive formula allows one to derive every polynomial from exactly two polynomials of a degree lower by one, by

File:Hepa img724.gif

The formula may be viewed as an interpolation. It translates, for instance, into a second-order polynomial defined by the equations of two straight lines by:

File:Hepa img725.gif

see Press95 for variants.