Question: Develop a script that generates and evaluates a polynomial p ( x ) of order n - 1 in barycentric form, p ( x )
Develop a script that generates and evaluates a polynomial of order in
barycentric form,
interpolating a given set of function values at a set of interpo
lation nodes dots, with barycentric weights The
interpolating polynomial is then evaluted at locations, dots,
Write a MATLAB function that fills out the following template:
functioa pvals baryInterpxnodes fvala,
Barycentric polymonial interpolation
Generate and evaluate a polynonial, that interpolates
valuen in fvals at xnodes: xnodes valsidots,
vhere lengthfvalu To polynomial is evaluated at the
locations liated in bas order
The barycestric form of the polynonial interpolant is used.
X Inputs: xnodes interpolation points
fvals function values to be interpolated at moden
z cations at vhich to evaleate the interpolast.
X Output: prals interpolating polynoaial evaluations at xi:
pvalsidots, where length
lengthfvals; mlength xi ;
Refer to Gautsch, Section and the algotithm fragment on p Also see Tre
fetbot, Chapter Extra style points will be awarded foe using a single one dimensional array
of length for instead of the two dimensionsl arrays descibed in Cautschi asd Tre
fethen and rescaling during the recunsion that generates it to avoid overflowunderflow
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
