Write a Matlab function polyinterp.m that takes as input a set of (x, y) interpolating points and another x0, and outputs y0, the value of the interpolating polynomial at x0. The first line of the file should be function y0 = polyinterp(x,y,x0), where x and y are input vectors of data points. Your function may call newtdd from Program 3.1 and nest from Chapter 0, and may be structured similarly to Program 3.2, but without the graphics. Demonstrate that your function works.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here