Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a computer program to calculate the Lagrange interpolation polynomial P_n (x) to f(x) such that: P_n (X_j) = f(X_j) j = 0, 1, 2.......,
Write a computer program to calculate the Lagrange interpolation polynomial P_n (x) to f(x) such that: P_n (X_j) = f(X_j) j = 0, 1, 2......., n a) Apply it to some elementary functions or a discrete data set. b) Apply it to function f(x) = 1/1 + 25x^2 in the interval [-1, 1] with equally spaced interpolation points and n = 8, 16, 32. Plot Pn(x) and f(x) in [-1, 1] interval to see the interpolation error. c) Do the same as in b, but use the roots of the Chebychev polynomial T_n + 1(x) as interpolation points. Compare results with those obtained in (b)
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