#include <Intg.h>
Inherits Intg< xType, yType >.
Inheritance diagram for Trap:

Public Member Functions | |
| Trap (const Intg< xType, yType > &ig) | |
| Trap (const Trap &tr) | |
| Trap (yType(&rFn)(xType), xType dEps) | |
| ~Trap (void) | |
Successively smaller step-sizes are used within the integration interval, until an approximated error is acheived. The trapezoid rule curve-fits derivative evaluations with linear piece-wise equations (1st order polynomials), and integrates under the curve-fit.
The declaration typename <xType> specifies the form of independent variables used in integral calculations. The declaration typename <yType> specifies the form of solution variables used in integral calculations. In general, the <yType> variables should be the equal or superset of the <xType> variables.
| Trap | ( | yType(&)(xType) | rFn, | |
| xType | dEps | |||
| ) |
Constructor initializes a function integration object.
| rFn | a reference to an integrand evaluation function | |
| dEps | required error of the calculated integral (|y| units) |
yType fn(xType x); Copy constructor initializes a function integration object from the specified existing integration object.
| tr | a reference to a function integration object |
Copy constructor initializes a function integration object from the specified existing integration object.
| ig | a reference to a function integration object |
| ~Trap | ( | void | ) |
Destructor is a place holder, no dynamic memory is allocated.
1.4.7