# HW02.pdf - Math 104A Homework#2 Instructor Lihui Chai...

• 3

This preview shows page 1 - 2 out of 3 pages.

Math 104A Homework #2 * Instructor: Lihui Chai General Instructions: Please write your homework papers neatly. You need to turn in both full printouts of your codes and the appropriate runs you made. Write your own code, individually. Do not copy codes! 1. (a) Write the Lagrangian form of the interpolating polynomial P 2 ( x ) corresponding to the data in the table below: x j f ( x j ) 0 1 1 1 3 -5 (b) Use P 2 ( x ) you obtained in (a) to approximate f (2). 2. (optional) We proved in class that k f - P n k (1 + Λ n ) k f - P * n k , (1) where P n is the interpolating polynomial of f at the nodes x 0 , ..., x n , P * n is the best ap- proximation of f , in the maximum (infinity) norm, by a polynomial of degree at most n , and Λ n = n X j =0 l ( n ) j , (2) is the Lebesgue constant (here the l ( n ) j are the elementary Lagrange polynomials). (a) Write a computer code to evaluate the Lebesgue function L ( n ) ( x ) = n X j =0 l ( n ) j ( x ) , (3) associated to a given set of pairwise distinct nodes x 0 , ..., x n .

Subscribe to view the full document.

• Fall '08
• Staff

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern