Math 2.0

Numerical analysis Definition

Neville's algorithm

Builds on Polynomial interpolationField

Definition

Let KK be a field, let n≥0n \ge 0, let x0,…,xn∈Kx_0, \dots, x_n \in K be pairwise distinct, let y0,…,yn∈Ky_0, \dots, y_n \in K, and let x∈Kx \in K. Neville's algorithm computes the numbers pi,jp_{i,j} for 0≤i≤j≤n0 \le i \le j \le n by the recursion

  1. pi,i=yip_{i,i} = y_i for 0≤i≤n0 \le i \le n;
  2. for i<ji < j, pi,j=(x−xi) pi+1,j−(x−xj) pi,j−1xj−xi,p_{i,j} = \frac{(x - x_i) \, p_{i+1,j} - (x - x_j) \, p_{i,j-1}}{x_j - x_i},

in order of increasing j−ij - i, and returns p0,np_{0,n}.

Remarks

By induction on j−ij - i, the number pi,jp_{i,j} is the value at xx of the interpolation polynomial of degree at most j−ij - i through (xi,yi),…,(xj,yj)(x_i, y_i), \dots, (x_j, y_j). Indeed, the same recursion with xx as a variable gives a polynomial of degree at most j−ij - i. At x=xix = x_i it gives pi,j−1(xi)=yip_{i,j-1}(x_i) = y_i, and at x=xjx = x_j it gives pi+1,j(xj)=yjp_{i+1,j}(x_j) = y_j. At an inner node xkx_k both terms give yky_k. So the output p0,np_{0,n} is the value at xx of the interpolation polynomial of all the data.

Example: data (0,1)(0, 1), (1,3)(1, 3), (2,7)(2, 7) and x=3x = 3. Then p0,1=3⋅3−2⋅11=7p_{0,1} = \frac{3 \cdot 3 - 2 \cdot 1}{1} = 7, p1,2=2⋅7−1⋅31=11p_{1,2} = \frac{2 \cdot 7 - 1 \cdot 3}{1} = 11 and p0,2=3⋅11−1⋅72=13p_{0,2} = \frac{3 \cdot 11 - 1 \cdot 7}{2} = 13. This agrees with the interpolation polynomial x2+x+1x^2 + x + 1 at 33.

Non-example: if two nodes coincide, xi=xjx_i = x_j with i<ji < j, the recursion divides by xj−xi=0x_j - x_i = 0, so the algorithm is not defined.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Field concept
  2. Polynomial interpolation concept
  3. Neville's algorithm definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Neville%27s_algorithm
About this page
TagKVZ7D84541
URIm2://KVZ7D84541
Kinddefinition
WritingW0 stub
MSC65D05, 41A05
DefinesNeville's algorithm
UsesPolynomial interpolation, Field

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.