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)

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