Overload List
Overload 1: double QuadGauss(TRealFunction Fun, double lb, double ub, TVec *BasePoints, TVec *Weights, int Parts);
Numerical integration by using regular Gaussian quadrature scheme.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Fun | TRealFunction | |
| 2 | lb | double | |
| 3 | ub | double | |
| 4 | BasePoints | TVec * | |
| 5 | Weights | TVec * | |
| 6 | Parts | int |
Returns: the numerical approximate on integral of function Fun between limits lb and ub.
Check the following link to learn more about this algorithm
Overload 2: double QuadGauss(TRealFunction Fun, double lb, double ub, TVec *Constants, const DewArray<tObject *> &ObjConst, TVec *BasePoints, TVec *Weights, int Parts);
Numerical integration by using regular Gaussian quadrature scheme (Fun defined only with double(s)).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Fun | TRealFunction | |
| 2 | lb | double | |
| 3 | ub | double | |
| 4 | Constants | TVec * | |
| 5 | ObjConst | const DewArray<tObject *> & | |
| 6 | BasePoints | TVec * | |
| 7 | Weights | TVec * | |
| 8 | Parts | int |
Overload 3: double QuadGauss(TRealFunction Fun, double lb, double ub, TVec *Constants, const DewArray<tObject *> &ObjConst, TIntStopReason &StopReason, const TMtxFloatPrecision FloatPrecision, TQuadMethod QMethod = TQuadMethod::qmGauss, double Tolerance = 1.0E-4, int MaxIter = 8);
Evaluate the numerical integral between lower and upper bound using Gauss quadrature algorithm.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Fun | TRealFunction | |
| 2 | lb | double | |
| 3 | ub | double | |
| 4 | Constants | TVec * | |
| 5 | ObjConst | const DewArray<tObject *> & | |
| 6 | StopReason | TIntStopReason & | |
| 7 | FloatPrecision | const TMtxFloatPrecision | |
| 8 | QMethod = TQuadMethod::qmGauss | TQuadMethod | |
| 9 | Tolerance = 1.0E-4 | double | |
| 10 | MaxIter = 8 | int |
Returns: the numerical approximate on integral of function Fun between limits lb and ub.
This version calculates base points and weights on the fly.
Overload 4: double QuadGauss(TRealFunction Fun, double lb, double ub, TIntStopReason &StopReason, const TMtxFloatPrecision FloatPrecision, TQuadMethod QMethod = TQuadMethod::qmGauss, double Tolerance = 1.0E-4, int MaxIter = 8);
Integration by using Gauss quadrature algorithm with no additional parameters for Fun.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Fun | TRealFunction | |
| 2 | lb | double | |
| 3 | ub | double | |
| 4 | StopReason | TIntStopReason & | |
| 5 | FloatPrecision | const TMtxFloatPrecision | |
| 6 | QMethod = TQuadMethod::qmGauss | TQuadMethod | |
| 7 | Tolerance = 1.0E-4 | double | |
| 8 | MaxIter = 8 | int |
Returns: the numerical approximate on integral of function Fun between limits lb and ub.
This version calculates base points and weights on the fly.
Note
Use this overload if integrating function is defined only by double parameter(s).