Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started