Question: 3. Consider the function f(2 E [, we want to interpolate this function on for 25a2+1 1,2,3, .,n +1, which are n + 1 equally

3. Consider the function f(2 E [, we want to interpolate this function on for 25a2+1" 1,2,3, .,n +1, which are n + 1 equally spaced points on the interval [-1, 1. Use the MATLAB func- tion LagrangeForm you wrote in problem 2 to plot the interpolating polynomial for n 5 and n 9. Show these two curves as well as the curve for f(x) in the same graph and distinguish them with legend. Do the interpolation polynomials match the function well
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
