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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started