Question: 4. (a) Implement the Barycentric Formula for evaluating the interpolating polynomial for arbitrarily distributed nodes To, ..., In; you need to write a function or

4. (a) Implement the Barycentric Formula for evaluating the interpolating polynomial for arbitrarily distributed nodes To, ..., In; you need to write a function or script that computes the barycentric weights A." = 1/ II (; - Ck) first and another code to use these values in the Barycentric Formula. Make sure to test your implementation. (b) Consider the following table of data 0.00 0.0000 0.25 0.7071 0.50 1.0000 0.75 0.7071 1.25 -0.7071 1.50 -1.0000 Use your code in (a) to find Ps(2) as an approximation of f(2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
