Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago

Question

=+from: a) a MNEs perspective? and b) the HRM managers perspective?

Answered: 1 week ago