cern_gauss56 Class Template Reference

#include <cern_gauss56.h>

Inheritance diagram for cern_gauss56:

inte

Detailed Description

template<class param_t, class func_t>
class cern_gauss56< param_t, func_t >

5,6-point Gaussian quadrature (CERNLIB)

If $ I_5 $ is the 5-point approximation, and $ I_6 $ is the 6-point approximation to the integral, then integ_err() returns the result $ \frac{1}{2}(I_5+I_6) $ with uncertainty $ |I_5-I_6| $.

Definition at line 41 of file cern_gauss56.h.


Public Member Functions

 cern_gauss56 ()
virtual double integ (func_t &func, double a, double b, param_t &pa)
 Integrate function func from a to b.
virtual int integ_err (func_t &func, double a, double b, param_t &pa, double &res, double &err)
 Integrate function func from a to b giving result res and error err.

Protected Attributes

Integration constants
double x5 [5]
double w5 [5]
double x6 [6]
double w6 [6]

The documentation for this class was generated from the following file:
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.