double Romberg(TRealFunction Fun, double lb, double ub, const TMtxFloatPrecision FloatPrecision, TVec *Constants, const DewArray<tObject *> &ObjConst, TIntStopReason &StopReason, double Tolerance = 1.0E-4, int MaxIter = 100);
Numerical integration by using recursive Romberg algorithm.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Fun | TRealFunction | Integrating function. |
| 2 | lb | double | Defines lower bound. |
| 3 | ub | double | Defines upper bound. |
| 4 | FloatPrecision | const TMtxFloatPrecision | Defines the computational precision to be used by the routine. |
| 5 | Constants | TVec * | Additional constants defining Fun function, usually nil/null. |
| 6 | ObjConst | const DewArray<tObject *> & | Additional objects defining Fun function, usually nil/null. |
| 7 | StopReason | TIntStopReason & | Returns algorithm stop reason. |
| 8 | Tolerance = 1.0E-4 | double | Defines integration tolerance. |
| 9 | MaxIter = 100 | int | Defines maximum number of alorithm iterations. |
Returns: the numerical approximate on integral of function Fun between limits lb and ub.
See Also: MtxIntDiff::QuadGauss
Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler