Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given data ( x 1 , y 1 ) , ( x 2 , y 2 ) , cdots, ( x n , y n
Given data
cdots,
we know that it is always possible to find the unique at most degree polynomial
that interpolates the data, iedots,
In class we learned that by assuming has the form
cdots
we can solve a system of equations for the unknowns dots, that is of the form
Here is a Vandermonde matrix that depends on dots, and is
the vector with components dots,
In the method of divided differences we assume that has the form
cdots
We are justified in doing this by the result of problem
In this case we solve a system of equations for the unknowns dots, that is of
the form is a matrix that depends on dots, and is the vector
with components dots,
a Write a MATLAB function that generates this matrix Your function has as
input dots, and has as output the matrix Let the prototype
be dividedDifference
b Write a MATLAB function which finds the polynomial interpolating the given
data. Use your function from part a to help you. Your function will have
input and the and variables respectively, and will output the coeffi
cients, dots, of the desired polynomial. The prototype is
divDiffPoly
c Show that the matrix has rank
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