# homework_2bN.pdf - Homework Math 104 A 1 Instructor Prof...

• Homework Help
• 3
• 50% (2) 1 out of 2 people found this document helpful

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

Homework, Math 104 A1Instructor: Prof. Hector D. CenicerosGeneral Instructions: Please write your homework papers neatly. You need to turn inboth full printouts of your codes and the appropriate runs you made. Write your own code,individually. Do not copy codes!1. LetVbe a normed vector space andWa subspace ofVandfV. Prove that theset of best approximations tofby elements inWis convex.2. (a) Write the Lagrangian form of the interpolating polynomialP2corresponding to thedata in the table below:xjf(xj)01113-5(b) UseP2to approximatef(2).3. We proved in class thatkf-Pnk(1 + Λn)kf-P*nk(1)wherePnis the interpolating polynomial offat the nodesx0, . . . , xn,P*nis the bestapproximation off, in the maximum (infinity) norm, by a polynomial of degree atmostn, and Λnis the Lebesgue constant, i.e. Λn=kLnk, whereLn(x) =nXj=0|lj(x)|.(2)(a) Write a computer code to evaluate the Lebesgue function (2) associated to a givenset of pairwise distinct nodesx0, . . . , xn.