HOME

TheInfoList



OR:

In mathematics, Neville's algorithm is an algorithm used for
polynomial interpolation In numerical analysis, polynomial interpolation is the interpolation of a given data set by the polynomial of lowest possible degree that passes through the points in the dataset. Given a set of data points (x_0,y_0), \ldots, (x_n,y_n), with no ...
that was derived by the mathematician Eric Harold Neville in 1934. Given ''n'' + 1 points, there is a unique polynomial of degree ''≤ n'' which goes through the given points. Neville's algorithm evaluates this polynomial. Neville's algorithm is based on the Newton form of the interpolating polynomial and the recursion relation for the
divided differences In mathematics, divided differences is an algorithm, historically used for computing tables of logarithms and trigonometric functions. Charles Babbage's difference engine, an early mechanical calculator, was designed to use this algorithm in its ...
. It is similar to Aitken's algorithm (named after
Alexander Aitken Alexander Craig "Alec" Aitken (1 April 1895 – 3 November 1967) was one of New Zealand's most eminent mathematicians. In a 1935 paper he introduced the concept of generalized least squares, along with now standard vector/matrix notation ...
), which is nowadays not used.


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: :


Alternate notation easier for computer implementation

In the above formulae, if we take the degree of the successive interpolating polynomials ''d'' = ''j'' − ''i'' and change the notation to ''p''''d'',''i'', : The final value ''p''''n'',0 (in this notation) is the required interpolated value. Since the number of computed items i.e. the range of ''i'' decreases with each successive ''d'', a linear array can be used for memory efficiency with ''p''''i'' being overwritten and ''d'' being ignored. (For example

The derivative (using the product rule) can be computed likewise as: : As before, ''p''′''n'',0 (in this notation) is the derivative. As this depends on the successive computed values of ''p'' also for each ''d'', it may be computed within the same loop. If linear arrays for ''p'' and ''p′'' are used for efficiency, the ''p''′ values should be computed before the ''p'' values are overwritten.


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 ( doi:10.1007/BF02166671) * Neville, E.H.: Iterative interpolation. J. Indian Math. Soc.20, 87–120 (1934)


External links

*{{MathWorld, title=Neville's Algorithm, urlname=NevillesAlgorithm Polynomials Interpolation de:Polynominterpolation#Algorithmus von Neville-Aitken