Answer on Question #61799 Programming & Computer Science
Let be distinct points on the real line and let be a real-valued function defined on some interval containing these points. Then, there exists exactly one polynomial of degree , which matches at . This one polynomial named an interpolation polynomial.
Solution
Let the polynomial has the form and satisfying conditions of interpolation : . Then we have a system of linear equations with unknown coefficients :
[
[1, x_0, x_0**2, ..., x_0**n],
[1, x_1, x_1**2, ..., x_1**n],
...
[1, x_n, x_n**2, ..., x_n**n]
]
* [a_0, a_1, ..., a_n] = [f_0, f_1, ..., f_n]This system has exactly one solution , because its matrix is nonsingular Vandermonde matrix and therefore there exists exactly one polynomial of degree , which matches at .
http://www.AssignmentExpert.com