Numerical Analysis/Lagrange example
< Numerical AnalysisWe'll find the interpolating polynomial passing through the points ,
,
, using the Lagrange method.
We first use the formula to write the following:
After some simplification, we get:
And our answer:
.
Adding a point
Now we'll add a point to our data set, and find a new interpolating polynomial. Let us add the point to our set. Starting over with the Lagrange formula, we write:
Simplifying, we get:
And our polynomial is:
.
This article is issued from Wikiversity - version of the Saturday, April 02, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.