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