Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started