Question: Write a Matlab function c=divdiffs(x,y) that computes the divided dierence table from the given data stored in the input vectors x and y, and returns
Write a Matlab function c=divdiffs(x,y) that computes the divided dierence table from the given data stored in the input vectors x and y, and returns a vector c consisting of the divided dierences f[x0,...,xj], j = 0,1,2,...,n, where n+1 is the length of both x and y.
And then Modify your function divdiffs to obtain a new function c=hermdivdiffs(x,y,yp) that computes the divided dierence table from the given data stored in the input vectors x and y, as well as the derivative values stored in yp, and returns a vector c consisting of the divided dierences f[z0,...,zj], j = 0,1,2,...,2n + 1, where n + 1 is the length of both x and y.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
