DIRECT METHOD
INTERACTIVE E-BOOK
|
INTERPOLATION
|
MAJOR
GENERAL
|
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 Direct Method for interpolation. |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Direct Method, Interpolation, Mathcad, Maple, Mathematica, Matlab, Simulations. |
|
Description |
An interactive E-book for illustrating Direct Method for interpolation. It includes links to simulations in Mathcad, Maple, Mathematica and Matlab for the algorithm, multiple choice quizzes, problem set, and a PowerPoint presentation. |
|
Publisher |
Holistic Numerical Methods Institute, |
|
Contributors |
Autar Kaw, Peter Warr, Michael Keteltas |
|
Format |
Text/HTML |
|
Last Revised |
|
|
Identifier |
|
|
Language |
English |
|
Rights |
|
Direct Method of Interpolation Examples Example 1: First order polynomial Example 2: Second order polynomial Example 3: Third order polynomial 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 So what kind of function (A) Evaluate (B)
differentiate (C) integrate as opposed to other choices such as a sine or exponential series. Polynomial interpolation involves
finding a polynomial of order ‘n’ that passes through the ‘n+1’ points. One of the methods is called the direct method
of interpolation. Other methods
include
DIRECT METHOD The direct
method of interpolation is based on the following premise. Given 'n+1' data points
through the data But Simulation ([MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB]) Example 1 The 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 the direct method and a first order polynomial.
Solution For the first order
polynomial (also called linear interpolation)
Since we want to find the velocity at t=16
gives Writing the equations in matrix form and solving the above two equations gives Hence Example 2 The 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 velocity at t = 16 seconds using direct method and a second order polynomial. Solution: For second order
polynomial interpolation (also called quadratic interpolation)
Since we want to find the velocity at t=16
gives
Writing the three equations in matrix form and the solution of the above three equations gives Hence At t = 16 The absolute relative approximate error
Example 3 The 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 direct method and a third order polynomial interpolation using direct method. Find the absolute relative approximate error for the third order polynomial approximation. b)
Using the third order polynomial interpolant for
velocity from part (a) c)
Using the third order polynomial interpolant for
velocity from part (a) Solution a) For the
third order polynomial (also called cubic interpolation) Since we want to find the velocity at t=16 The four points are t0=10
such that
Writing the four equations in matrix form Solving the above four equations gives
Hence
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=20 and hence includes the limits of integration of t=11 and t=16. So = c) The acceleration at t=16 is given by Given that
1. You are given data for the upward velocity of a rocket as a function of time in the table below.
|