chw1 - f-P n for n = 5 10 15 20 25 2 Repeat the previous...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Math 128a, fall 2011, Chorin, computer homework 1. 1. Consider the function f ( x ) = 1 / (1 + 25 x 2 ) on the interval [ - 1 , 1] (i.e., for x between - 1 and +1). Let P n be the polynomial of degree n that interpolates this function at n + 1 equidistant points x j , starting with x 0 = - 1 and ending with x n = 1. Plot the difference
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f-P n for n = 5 , 10 , 15 , 20 , 25. 2. Repeat the previous problem with the interpolation points x j =-cos ( jπ/n ) for j = 0 , 1 ,...,n , again repeat for n = 5 , 10 , 15 , 20 , 25. Comment on what you observe. 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online