Question: Using MatLab ) Find a polynomial to interpolate the data after that find f ( 3 . 5 ) . f ( x ) =
Using MatLab Find a polynomial to interpolate the data after that find
and simular to the given code:
function coeffs newtonsdivideddifferencexy
input:
x: vector of x value
y: vector of y value corresponding to x
number of data of points
nlengthx
initialize the divided differnces table
F zerosnn
fill in the first column with y values
F:y;
compute the divided differences
for j:n;
for i:nj;
FijFi jFijxijxi;
end
end
coefficients of the polynoimal
coeffs F:;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
