MtxIntDiff::Romberg Function

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.

#NameTypeDescription
1FunTRealFunctionIntegrating function.
2lbdoubleDefines lower bound.
3ubdoubleDefines upper bound.
4FloatPrecisionconst TMtxFloatPrecisionDefines the computational precision to be used by the routine.
5ConstantsTVec *Additional constants defining Fun function, usually nil/null.
6ObjConstconst DewArray<tObject *> &Additional objects defining Fun function, usually nil/null.
7StopReasonTIntStopReason &Returns algorithm stop reason.
8Tolerance = 1.0E-4doubleDefines integration tolerance.
9MaxIter = 100intDefines 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