MtxIntDiff::QuadGauss Function

Overload List

#SignatureDescription
1double QuadGauss(TRealFunction Fun, double lb, double ub, TVec *BasePoints, TVec *Weights, int Parts);Numerical integration by using regular Gaussian quadrature scheme.
2double 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)).
3double 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.
4double 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.

Overload 1: double QuadGauss(TRealFunction Fun, double lb, double ub, TVec *BasePoints, TVec *Weights, int Parts);

Numerical integration by using regular Gaussian quadrature scheme.

#NameTypeDescription
1FunTRealFunction
2lbdouble
3ubdouble
4BasePointsTVec *
5WeightsTVec *
6Partsint

Returns: the numerical approximate on integral of function Fun between limits lb and ub.

Remarks:

Check the following link to learn more about this algorithm

See Also: MtxIntDiff::Romberg, MtxIntDiff::WeightsGauss, MtxIntDiff::WeightsNewtonCotes, MtxIntDiff::WeightsChebyshevGauss
Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler

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)).

#NameTypeDescription
1FunTRealFunction
2lbdouble
3ubdouble
4ConstantsTVec *
5ObjConstconst DewArray<tObject *> &
6BasePointsTVec *
7WeightsTVec *
8Partsint
Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler

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.

#NameTypeDescription
1FunTRealFunction
2lbdouble
3ubdouble
4ConstantsTVec *
5ObjConstconst DewArray<tObject *> &
6StopReasonTIntStopReason &
7FloatPrecisionconst TMtxFloatPrecision
8QMethod = TQuadMethod::qmGaussTQuadMethod
9Tolerance = 1.0E-4double
10MaxIter = 8int

Returns: the numerical approximate on integral of function Fun between limits lb and ub.

Remarks:

This version calculates base points and weights on the fly.

See Also: MtxIntDiff::Romberg
Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler

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.

#NameTypeDescription
1FunTRealFunction
2lbdouble
3ubdouble
4StopReasonTIntStopReason &
5FloatPrecisionconst TMtxFloatPrecision
6QMethod = TQuadMethod::qmGaussTQuadMethod
7Tolerance = 1.0E-4double
8MaxIter = 8int

Returns: the numerical approximate on integral of function Fun between limits lb and ub.

Remarks:

This version calculates base points and weights on the fly.

Note
Use this overload if integrating function is defined only by double parameter(s).

Declared in Dew::Math::Units::MtxIntDiff · Dew.Math/Units.MtxIntDiff.h · Cross-compiler