Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
cern_gauss56< func_t > Class Template Reference

5,6-point Gaussian quadrature (CERNLIB) More...

#include <cern_gauss56.h>

Inheritance diagram for cern_gauss56< func_t >:
inte< func_t >

Detailed Description

template<class func_t>
class cern_gauss56< func_t >

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 44 of file cern_gauss56.h.

Public Member Functions

virtual int integ_err (func_t &func, double a, double b, 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]

Member Function Documentation

template<class func_t >
virtual int cern_gauss56< func_t >::integ_err ( func_t &  func,
double  a,
double  b,
double &  res,
double &  err 
) [inline, virtual]

This function always returns gsl_success.

Implements inte< func_t >.

Definition at line 79 of file cern_gauss56.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.