The algorithm
Given a set of ''n''+1 data points (''x''''i'', ''y''''i'') where no two ''x''''i'' are the same, the interpolating polynomial is the polynomial ''p'' of degree at most ''n'' with the property :''p''(''x''''i'') = ''y''''i'' for all ''i'' = 0,…,''n'' This polynomial exists and it is unique. Neville's algorithm evaluates the polynomial at some point ''x''. Let ''p''''i'',''j'' denote the polynomial of degree ''j'' − ''i'' which goes through the points (''x''''k'', ''y''''k'') for ''k'' = ''i'', ''i'' + 1, …, ''j''. The ''p''''i'',''j'' satisfy the recurrence relation : This recurrence can calculate ''p''0,''n''(''x''), which is the value being sought. This is Neville's algorithm. For instance, for ''n'' = 4, one can use the recurrence to fill the triangular tableau below from the left to the right. : This process yields ''p''0,4(''x''), the value of the polynomial going through the ''n'' + 1 data points (''x''''i'', ''y''''i'') at the point ''x''. This algorithm needs O(''n''2) floating point operations to interpolate a single point, and O(''n''3) floating point operations to interpolate a polynomial of degree n. The derivative of the polynomial can be obtained in the same manner, i.e: :Application to numerical differentiation
Lyness and Moler showed in 1966 that using undetermined coefficients for the polynomials in Neville's algorithm, one can compute the Maclaurin expansion of the final interpolating polynomial, which yields numerical approximations for the derivatives of the function at the origin. While "this process requires more arithmetic operations than is required in finite difference methods", "the choice of points for function evaluation is not restricted in any way". They also show that their method can be applied directly to the solution of linear systems of the Vandermonde type.References
* (link is bad) * J. N. Lyness and C.B. Moler, Van Der Monde Systems and Numerical Differentiation, Numerische Mathematik 8 (1966) 458-464 (doiExternal links
*{{MathWorld, title=Neville's Algorithm, urlname=NevillesAlgorithm Polynomials Interpolation de:Polynominterpolation#Algorithmus von Neville-Aitken