# Please code in Python, will leave a rating. Thank you. 3. The Runge .docx

• 3
• 0% (2) 0 out of 2 people found this document helpful

This preview shows page 1 - 3 out of 3 pages. Please code in Python, will leave a rating. Thank you. 3. The Runge Example. Let f(x) = 1 f 1 , 2 (-5,5). * All course materials (class lectures and discussions, handouts, homework assignments, examinations, web ma- terials) and the intellectual content of the course itself are protected by United States Federal Copyright Law, the California Civil Code. The UC Policy 102.23 expressly prohibits students andall other persons) from recording lectures or discussions and from distributing or selling lectures notes and all other course materials without the prior written permission of Prof.Hector D. Ceniceros. Using your Barycentric Formula code (Prob. 3) and (2) and (3) below, evaluate and plot the interpolating polynomial of f(x) corresponding to (a) the equidistributed nodes x = -5+ (10/n), j = 0,..., n for n = 4, 8, and 12. (b) the nodes x; = 5 cos(7), j = 0, ..., n for n= 4, 8, 12, and 100. (c) Repeat (a) for f(x) = e-r4/5 for x
• • • 