View the step-by-step solution to:




Interpolate f(x) on the interval [-5,5] with Lagrange polynomials of degree n, Pn(x), which agree with f at n+1 equally spaced points on the interval. Do this for n=5, 10, 15, 20. Explain what method you are using to compute the polynomials. You may use matlab commands polyval and polyfit.

Plot P5(x), P10(x), and P15(x) separately, but with each f(x). (When displaying a graph, plot the points xi,yi where xi-xi-1 = 0.01)

Compute the error at the point q=1+(10) for each of the approximations. What would you expect to happen as n gets larger? What is actually happening?

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes