Due date for Assignment #3 is now Thursday, April 4
- Hints for Assignment #3:
Problem 1: Use the linear system method or the Lagrange method to
find the interpolating polynomial. Do not use the Matlab
function polyfit.
Use plot(x,y,'o',t,yp,t,yf) to plot the given points together
with the interpolating curve and the function f . Note that you
can put several plots on one
page.
Problem 2: Use spline twice: First to get
xx from the given t and x-values, then to get yy
from the given t and y-values. Use plot(x,y,'o',xx,yy); axis
square to plot your 9 points together with the interpolating
curve.
Problem 3: Do not use the Matlab function
polyfit. Use plot(t,q,'o',tt,qq) to plot the
given points together with the least squares curve (the vectors
t, q contain the coordinates of the given
points, the vectors tt, qq contain the
coordinates of the points on the fitted curve).