Tool for finding the equation of a curve using the Neville-Aitken algorithm. Neville interpolation is a polynomial method for obtaining the expression of a curve from known points.
Neville Interpolating Polynomial - dCode
Tag(s) : Functions
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Neville-Aikten's algorithm allows us to interpolate a set of points $ (x_i,y_i) $ and, if necessary, obtain the expression of the interpolating polynomial.
The method relies on a recursive construction of polynomials $ P_{ij}(x) $ that progressively approach the final polynomial.
Neville interpolation uses 3 steps:
1 - Initialize zero-degree polynomials: $ P_i(x) = y_i $ for each point $ (x_i,y_i) $.
Example: The points $ (0,0), (2,4), (4,16) $ allow to obtain $ P_1(x) = 0, P_2(x) = 4, P_3(x) = 16 $
2 - Construct the higher-order polynomials using the recurrence relation: $$ P_{ij}(x) = \frac{(x_j-x)P_i(x) + (x-x_i)P_j(x)}{x_j-x_i} $$
Example: $ P_{1,2} = \frac{(2-x)0 + (x-0)4}{2-0} = 2x $, $ P_{2,3} = \frac{(4-x)4 + (x-2)16}{4-2} = \frac{16-4x+16x-32}{2} = 6x-8 $
3 - Iterate until the final polynomial is obtained
Example: $ P_{12,23} = \frac{(4-x)(2x) + (x-0)(6x-8)}{4-0} = \frac{8x-2x^2 + 6x^2 -8x}{4} = x^2 $
The algorithm can be represented as a pyramid, with each level combining two polynomials from the previous level until the final interpolation polynomial (the interpolation function) is obtained.
Neville-Aikten interpolation has several practical limitations. The calculations quickly become expensive as the number of points increases, because the algorithm requires the construction of O(n^2) intermediate values.
These constraints lead dCode to limit the number of distinct ordinates in the set Q.
Neville's algorithm recursively applies the barycentric formula that underlies Lagrange interpolation. The final polynomial constructed by Neville is algebraically identical to the Lagrange polynomial. However, Neville provides a numerically more stable method for evaluating this polynomial at a given point, without requiring the sum of the Lagrange terms to be specified.
dCode retains ownership of the "Neville Interpolating Polynomial" source code. Any algorithm for the "Neville Interpolating Polynomial" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Neville Interpolating Polynomial" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Neville Interpolating Polynomial" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Neville Interpolating Polynomial" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Neville Interpolating Polynomial on dCode.fr [online website], retrieved on 2025-11-08,