Question
Write a program in python 2.7 that implements the n-point Lagrange interpolation. Treat n as an input parameter. Use your program to calculate values of
Write a program in python 2.7 that implements the n-point Lagrange interpolation. Treat n as an input parameter. Use your program to calculate values of following functions in n uniform points in the [0.0,10.0] interval. f (x) = exp(sin(ax)) Consider the values a = 12, 1, and 1.5. For a = 1, Comment on how the number of the base points affects the quality of interpolation. In a separate write-up, list in a table the result of evaluating the interpolating function for f(x) for at least 5 values of x between 0 and 10. Do this for each of the above values of a.
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