Question: Newton's divided differences 2 solutions submitted (max: Unlimited) | View my solutions Write a MATLAB function, called Newtons_divided_differences that inputs a set of data

Newton's divided differences 2 solutions submitted (max: Unlimited) | View my solutions Write a MATLAB

Newton's divided differences 2 solutions submitted (max: Unlimited) | View my solutions Write a MATLAB function, called Newtons_divided_differences that inputs a set of data points (x,y)=(datx,daty), a set x of numbers at which to interpolate, and outputs the polynomial interpolant, y, evaluated at $x$ using Newton's divided differences. Your function header should look something like: function y = Newtons_divided_differences (x,datx, daty) Use the code you developed to interpolate the function f1(x)=exp{-x^2} using the data points datx=-3:1:3. Interpolate at the points x=-3:0.01:3. Call P5 the obtained interpolant. Plot the results and comment on the error. Compare your result with the one while interpolating with Lagrange_poly: write your answer and obsvervations in a Matlab comment. Script ? 1 2 Save C Reset MATLAB Documentation Newton's divided differences 2 solutions submitted (max: Unlimited) | View my solutions Write a MATLAB function, called Newtons_divided_differences that inputs a set of data points (x,y)=(datx,daty), a set x of numbers at which to interpolate, and outputs the polynomial interpolant, y, evaluated at $x$ using Newton's divided differences. Your function header should look something like: function y = Newtons_divided_differences (x, datx, daty) Use the code you developed to interpolate the function f1(x)=exp{-x^2} using the data points datx=-3:1:3. Interpolate at the points x=-3:0.01:3. Call P5 the obtained interpolant. Plot the results and comment on the error. Compare your result with the one while interpolating with Lagrange_poly: write your answer and obsvervations in a Matlab comment. Script ? 1 2 Save C Reset MATLAB Documentation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The image presents an assignment or a task to be completed using MATLAB The task involves writing a MATLAB function named Newtonsdivideddifferences th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!