Answered step by step
Verified Expert Solution
Link Copied!

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.......,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago