Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
MathInteg_Gauss.hxx File Reference
#include <MathUtils_Types.hxx>
#include <MathUtils_Config.hxx>
#include <MathUtils_Core.hxx>
#include <MathUtils_Gauss.hxx>
#include <algorithm>
#include <cmath>

Namespaces

namespace  MathInteg
 Numerical integration algorithms.
 

Functions

template<typename Function >
IntegResult MathInteg::Gauss (Function &theFunc, double theLower, double theUpper, int theNbPoints=15)
 Gauss-Legendre quadrature for definite integrals. Computes integral of f(x) from theLower to theUpper using n-point Gauss-Legendre rule.
 
template<typename Function >
IntegResult MathInteg::GaussAdaptive (Function &theFunc, double theLower, double theUpper, const IntegConfig &theConfig=IntegConfig())
 Adaptive Gauss-Legendre integration. Recursively subdivides interval until error estimate is below tolerance.
 
template<typename Function >
IntegResult MathInteg::GaussComposite (Function &theFunc, double theLower, double theUpper, int theNbIntervals, int theNbPoints=7)
 Composite Gauss-Legendre integration. Divides interval into subintervals and applies Gauss-Legendre to each. Simple alternative to adaptive integration.