So for a given set of N1 data pairs x k y k k to N DO FOR j 2 to N1 DO FOR k j

So for a given set of n1 data pairs x k y k k to n do

This preview shows page 17 - 21 out of 73 pages.

So for a given set of (N+1) data pairs, ( x k ,y k ), k = 0 to N DO FOR j = 2 to ( N+1) DO FOR k = j to ( N+1)
Image of page 17
3-7 Compute D(k,j)= (D(k,j-1)-D(K-1,j-1))/(x(k)-x(k-j+1)) END DO( k ) END DO( j ) Exercise 6. Write a MATLAB Program implementing the algorithm of Newton polynomial. Exercise 7. Construct a Newton interpolating polynomials for the data points given in table 1. Note: There are some functions in MATLAB which perform interpolation of data in different ways e.g . interp1, interp2 etc. Revised by, Emran Md. Amin
Image of page 18