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

Public Member Functions | |
| Simp (const Intg< xType, yType > &ig) | |
| Simp (const Simp &si) | |
| Simp (yType(&rFn)(xType), xType dEps) | |
| ~Simp (void) | |
Successively smaller step-sizes are used within the integration interval, until an approximated error is acheived. Simpson's rule curve-fits derivative evaluations with quadratic polynomial equations (2nd 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.
| Simp | ( | 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.
| si | 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 |
| ~Simp | ( | void | ) |
Destructor is a place holder, no dynamic memory is allocated.
1.4.7