Question: Additional problem 3 : Write a function lagrange _ interp which can be called as where x - interp is a vector of interpolation points,
Additional problem : Write a function lagrangeinterp which can be called as
where interp is a vector of interpolation points, is a vector of function values at the interpolation points, and the output yeval is the vector of values of the Lagrange interpolating polynomial, evaluated on the input points eval. Now
consider interpolating the function on the interval using as interpolation points equispaced points starting at and ending at and Chebyshev nodes ie the zeros of the th order Chebyshev polynomial Use your function lagrangeinterp to compute and plot the Lagrange interpolating polynomial on a very fine grid. Comment on the comparison between the two interpolation approaches as becomes large, and print the plots you need to illustrate the difference in behavior. Please answer all parts of the question and make sure to include correct and appropriate MATLAB code. Please dont use python, thank you
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
