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

Public Member Functions | |
| Romb (const Intg< xType, yType > &ig) | |
| Romb (const Romb &ro) | |
| Romb (yType(&rFn)(xType), xType dEps) | |
| virtual bool | setCount (int nMaximum) |
| ~Romb (void) | |
Static Public Attributes | |
| static const int | DEF_POL_CNT = 5 |
Successively smaller step-sizes are used within the integration interval, until an approximated error is acheived. The Romberg method extrapolates an integral approximation at a zero step-size value based on non-zero step-size evaluations. The extrapolation uses a polynomial curve-fit. Variable step-size integral evaluations are made using the trapezoid rule (see calc::Trap class).
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.
| ~Romb | ( | void | ) |
Destructor frees allocated memory.
| Romb | ( | 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.
| ro | 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 |
| bool setCount | ( | int | nMaximum | ) | [virtual] |
Virtual function sets the current maximum loop count used in the integration evaluation.
| nMaximum | the maximum loop count value |
Reimplemented from Intg.
const int DEF_POL_CNT = 5 [static] |
polynomial data point count in Romberg extrpolation
1.4.7