DISCRETE FUNCTIONS
INTERACTIVE E-BOOK
|
INTEGRATION
|
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 integration of discrete functions. |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Discrete Functions, Numerical Integration, Mathcad, Maple, Mathematica, Matlab, Simulations. |
|
Description |
An interactive E-book for illustrating integration of discrete functions. It includes links to simulations in Mathcad, Maple, Mathematica and Matlab for the algorithm. |
|
Publisher |
Holistic Numerical Methods Institute, |
|
Contributors |
Autar Kaw, Michael Keteltas |
|
Format |
Text/HTML |
|
Last Revised |
|
|
Identifier |
http://numericalmethods.eng.usf.edu/ebooks/discrete_07int_ebook.pdf |
|
Language |
English |
|
Rights |
|
Example 1: Velocity as a function of time Method 1: Average velocity method Method 3: Polynomial interpolation Method 4: Spline interpolation Method 1: Average velocity error Method 2: Trapezoidal Rule error Method 3: Polynomial interpolation error Method 4: Spline interpolation error Simulation
[MAPLE]
[MATHCAD]
[MATHEMATICA]
[MATLAB]
|
|
|
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 |
|
Integration is the process of measuring the area
under a function plotted on a graph. Why
would we want to do so? Among the most
common examples are finding the velocity of a body from acceleration
functions
Figure 1: Integration of a functionINTEGRATING DISCRETE
FUNCTIONS The method of integrating discrete functions is shown below using an example. The upward velocity of a rocket is given as a function of time in Table 1. Table 1: Velocity
as a function of time
Figure 1:
Velocity vs. time data for the rocket example Determine
the distance Solution Method 1: Average Velocity Method The
velocity of the rocket is not provided at Since
Back to TOCIf
we were finding the distance traveled between times on the data table
and applying the trapezoidal rule over each of the above integrals gives
The
values of v(10) However
and applying the trapezoidal rule over each of the above integrals gives
How
do we find v(11) and v(16)? We use linear interpolation. To find v(11)
and to find v(16)
Then Method 3: Polynomial Interpolation to find
velocity profile Because
we are finding the area under the curve from Now
Method 4: Spline Interpolation to find the
velocity profile Fitting quadratic splines (refer to notes on spline method of interpolation) through the data obtains the following set of quadratics The value of the integral would then simply be
Back to TOCWhat is the absolute relative true error for each of the above four methods if the above data in Table 1 was actually obtained from the velocity profile of
Solution The distance covered between t=11 and t=16 is
The
approximate value obtained using average velocity method was 1845.3 m The
approximate value obtained using the trapezoidal rule was 1604.9 m The
approximate value obtained using the direct polynomial was 1604.3 m The
approximate value obtained using the spline interpolation was 1595.9m Table 2: Comparison of Discrete Function Methods of Numerical Integration
Simulations [MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB] Appendix Trapezoidal Rule for Discrete Functions with
Unequal Segments For
a general case of a function given at n data points the
approximate value of the integral
This
approach uses the trapezoidal rule in the intervals Example 3 The upward velocity of a rocket is given as a function of time in Table 2. Table 1: Velocity
as a function of time
Figure 2: Velocity vs. time data for the rocket example Determine
the distance |