Question: Consider the Lagrange interpolating polynomial. Given input coordinates, ! X = ( x 1 , . . . , xn ) and corresponding function values
Consider the Lagrange interpolating polynomial. Given input coordinates,
X x xn and corresponding function values
Y y yn f x f xn the
Lagrange interpolant allows us to interpolate the function values at any point
x using
the formula:
Px f x k
Ln kx
k
n
# where
Ln k x x x j
xk x j j
j #k
n
$ Note that the index
above runs from to n instead of to n that is used in the textbook. This is because
Matlab does not allow the index
The aim of this lab is to write a function for interpolation using Lagrange
Polynomials. We wish to write a function that will take
XY and a point
x as inputs
and return
Px as outp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
