LAGRANGIAN METHODINTERACTIVE E-BOOK |
INTERPOLATION |
MAJORGENERAL |
On non Internet
Explorer browsers, the equations may not show up.
As an alternative or if you
prefer,
you can see the pdf version of the ebook instead
Title |
An interactive e-book for illustrating the Lagrangian Method for interpolation. |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Lagrangian Method, Interpolation, Mathcad, Maple, Mathematica, Matlab, Simulations. |
|
Description |
An interactive E-book for illustrating Lagrangian Method for interpolation. It includes links to simulations in Mathcad, Maple, Mathematica, and Matlab for the algorithm, multiple choice quizzes, and a PowerPoint presentation. |
|
Publisher |
Holistic Numerical Methods Institute, |
|
Contributors |
Autar Kaw, Michael Keteltas |
|
Format |
Text/HTML |
|
Last Revised |
June 14, 2004 |
|
Identifier |
http://numericalmethods.eng.usf.edu/ebooks/largrange_05inp_ebook.pdf |
|
Language |
English |
|
Rights |
|
Lagrangian Method of Interpolation Examples Example 1: First order polynomial interpolation Example 2: Second order polynomial interpolation Example 3: Third order polynomial interpolation Simulation ([MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB]) Problem Sets |
|
Background This is an example of how an instructor of a Numerical Methods course can develop an E-book on a single topic by using resources that are only available at the Holistic Numerical Methods Institute (HNMI) Website. Although one of the primary advantages of a web-based resource is that one can use documents outside of its own domain, we are particularly using this example as a way to illustrate the holistic nature of the resources available at HNMI. You are welcome to modify and edit this e-book to suit your purpose. Using the textbook document written in MS Word 2000 as a foundation, it was made interactive within MS Word 2000 by putting bookmarks and hyperlinks to background information, PowerPoint presentations, Mathcad simulations, historical anecdotes, multiple choice tests, problem sets, etc. Then the MS Word 2000 file was saved as a webpage and that is what you are about to read here. Back to TOC |
|
Many a times,
a function
So what kind
of function a) evaluate b) differentiate, and c) integrate
Figure 1: Interpolation of discrete data
Polynomial interpolation involves finding a polynomial of order ‘n’ that
passes through the ‘n+1’ points. One of the methods to find this
polynomial is called Lagrangian Interpolation. Other methods include
the direct method and the Lagrangian interpolating polynomial is given by
where ‘
Simulations [MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB] Example 1The upward velocity of a rocket is given as a function of time in Table 1. Table 1: Velocity as a function of time
Determine the value of the velocity at t=16 seconds using a first order polynomial.
Solution For the first order polynomial (also called linear interpolation), we choose the velocity as given by
Figure 3: Linear interpolationSince we want to find the velocity at t=16, we choose two data points that are closest to t=16 and that also bracket t=16. Those two points are to=15 and t1=20.
You can see
that Back to TOC
Quadratic InterpolationFor the second order polynomial interpolation (also called quadratic interpolation), we choose the velocity given by
Figure 4: Quadratic interpolationBack to TOC
Example 2The upward velocity of a rocket is given as a function of time in Table 2. Table 2: Velocity as a function of time
Determine the value of the velocity at t=16 seconds using second order polynomial interpolation using Lagrangian polynomial interpolation. Find the absolute relative approximate error for approximation from second order polynomial. Solution: Since we want to find the velocity at t=16, we need to choose data points that are closest to t=16 as well as bracket t=16. These three points are t0=10, t1=15, t2=20.
gives
The
absolute relative approximate error
Back to TOC
Example 3The upward velocity of a rocket is given as a function of time in Table 3. Table 3: Velocity as a function of time
a) Determine the value of the velocity at t=16 seconds using third order polynomial interpolation using Lagrangian polynomial interpolation. Find the absolute relative approximate error for the third order polynomial approximation. b) Using the third order polynomial interpolant for velocity, find the distance covered by the rocket from t=11s to t=16s. c) Using the third order polynomial interpolant for velocity, find the acceleration of the rocket at t=16s. Solution: a) For the third order polynomial (also called cubic interpolation), we choose the velocity given by
Since we
want to find the velocity at t=16, and we are using a third order polynomial,
we need to choose the four points closest to The four points are t0=10, t1=15, t2=20 and t3=22.5.
such that
The
absolute percentage relative approximate error,
b) The distance covered by the rocket between t=11s and t=16s can be calculated from the interpolating polynomial
Note that the polynomial is valid between t=10 and t=22.5 and hence includes the limits of t=11 and t=16. So
c) The acceleration at t=16 is given by
Given that
|