Homework will be collected at the due dates indicated below, and should be completed by 5 pm (on the indicated due date).
Your completed homework assignments should be submitted into the homework dropbox (located in the basement of AP&M) labeled 170B and your TA's name.
Please note that due to scheduling constraints, some assignments are longer than others.
A good practice is to do the homework questions associated with a particular section immediately after it is covered in class.
Please observe the following neatness guidelines for homework that you turn in to be graded. Otherwise, you will not receive full credit and your assignment may not be graded at all.
Write cleanly and legibly on clean, white paper that is not torn from a spiral notebook.
Write your Name, PID, and Section on the front page of your assignment.
You must do the computer part of each homework, otherwise you will not receive credit for the homework.
Computer Problem: Write a program that takes takes data points (x_i,y_i), i=0,...,n, and outputs the Newton form of the interpolating polynomial (suffices to compute the coefficients). Write another program for the Lagrange form.
Using the code you wrote, interpolate the function f(x)=sin(2πx) at ten equi-spaced nodes in [0,1], including 0 and 1. Overlay the value of the interpolating polynomial at twenty equi-spaced points in [0,1] (including 0 and 1).
Verify that both your programs give the same results.
Due Wednesday, February 4. Note: since the first midterm is before the deadline for this HW, I strongly suggest you do this assignment before the midterm.