Question: Given f(x) in [a, b], suppose pn(x) is the interpolation polynomial of degree n at the nodes points (x0, y0),(x1, y1), ,(xn, yn). We know

Given f(x) in [a, b], suppose pn(x) is the interpolation polynomial of degree n at the nodes points (x0, y0),(x1, y1), ,(xn, yn). We know that the point-wise error f(x) pn(x) depends crucially on the monic polynomial wn+1(x) := (x x0)(x x1) (x xn). In this project, we want to investigate by numerical experiments the behavior of w[n](x) defined on equally spaced nodes, i.e., x[1] x[0] = x[2] x[1] = = x[n] x[n1] = h and x[0] = a, x[n] = b. Write a function for evaluating w[n+1](x). This function should take x[0], x[1], x[n] and x as input, and then output the value of w[n+1](x) in python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!