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 3: Write a function lagrange_interp which can be called as
where x-interp is a vector of interpolation points, y?interp is a vector of function values at the interpolation points, and the output y_eval is the vector of values of the Lagrange interpolating polynomial, evaluated on the input points x-eval. Now
1
consider interpolating the function f(x)=11+25x2 on the interval -1,1 using as interpolation points (1)n equispaced points starting at -1 and ending at 1 and (2)n Chebyshev nodes (i.e., the n zeros of the n-th order Chebyshev polynomial). Use your function lagrange_interp to compute and plot the Lagrange interpolating polynomial on a very fine grid. Comment on the comparison between the two interpolation approaches as n 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
 Additional problem 3: Write a function lagrange_interp which can be called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!