Consider the set of points:(−3,4),(−2,6),(−1,7),(0,4),(1,2),(2,0),(3,−1),(4,2).(a) Write a function for Interpolating Polynomials using Newton’s Divided-Difference For-mula. Have as inputs two vectors,xandy, that give the points (xi, yi), and a vector ofpointswwhere to evaluate the polynomial. OutputQ(w).
1.Consider the set of points:(−3,4),(−2,6),(−1,7),(0,4),(1,2),(2,0),(3,−1),(4,2).(a) Write a function for Interpolating Polynomials using Newton’s Divided-Difference For-mula. Have as inputs two vectors,xandy, that give the points (xi, yi), and a vector ofpointswwhere to evaluate the polynomial. OutputQ(w). Include the function file as aseparate file. (b) Apply your function from part (a) to the set of data points. […]