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

This class is based on the CERNLIB routines RGS56P and DGS56P which are documented at http://wwwasdoc.web.cern.ch/wwwasdoc/shortwrupsdir/d106/top.html

Definition at line 45 of file cern_gauss56.h.


Public Member Functions

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.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page