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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!