Consider polynomial interpolation of the function f(x)=1/(1+25x^2) on the interval [-1,1] by (1) an interpolating polynomial determined...

70.2K

Verified Solution

Question

Advance Math

Consider polynomial interpolation of the functionf(x)=1/(1+25x^2) on the interval [-1,1] by (1) an interpolatingpolynomial determined by m equidistant interpolation points, (2) aninterpolating polynomial determined by interpolation at the m zerosof the Chebyshev polynomial T_m(x), and (3) by interpolating bycubic splines instead of by a polynomial. Estimate theapproximation error by evaluation max_i |f(z_i)-p(z_i)| for manypoints z_i on [-1,1]. For instance, you could use 10m points z_i.The cubic spline interpolant can be determined in MATLAB; see \"helpspline\". Use m=10 and m=20. Compute splines that interpolate atequidistant nodes and at Chebyshev nodes. Provide tables of theerrors and plots of the function f and the interpolatingpolynomials and splines.

Answer & Explanation Solved by verified expert
4.3 Ratings (653 Votes)
Matlab function for Lagrange Interpolationclear allclose allfirst functionf1x 1125x2loop for Lagrange polynomial for all na1b1 k0for n101020 kk1 Equidistance data points x1linspaceabn y1doublef1x1 Chebyshev data points for    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students