Public Member Functions | List of all members
o2scl::inte_gauss56_cern< func_t, fp_t, x5, w5, x6, w6 > Class Template Reference

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

#include <inte_gauss56_cern.h>

Inheritance diagram for o2scl::inte_gauss56_cern< func_t, fp_t, x5, w5, x6, w6 >:
o2scl::inte< func_t, fp_t >

Detailed Description

template<class func_t = funct, class fp_t = double, const fp_t x5 = inte_gauss56_cern_x5_double, const fp_t w5 = inte_gauss56_cern_w5_double, const fp_t x6 = inte_gauss56_cern_x6_double, const fp_t w6 = inte_gauss56_cern_w6_double>
class o2scl::inte_gauss56_cern< func_t, fp_t, x5, w5, x6, w6 >

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

Note
Currently O2scl supports only types double and long double for the floating point type fp_t .

Definition at line 129 of file inte_gauss56_cern.h.

Public Member Functions

virtual int integ_err (func_t &func, fp_t a, fp_t b, fp_t &res, fp_t &err)
 Integrate function func from a to b giving result res and error err. More...
 
- Public Member Functions inherited from o2scl::inte< func_t, fp_t >
virtual fp_t integ (func_t &func, fp_t a, fp_t b)
 Integrate function func from a to b.
 
fp_t get_error ()
 Return the numerically estimated error in the result from the last call to integ() More...
 
virtual const char * type ()
 Return string denoting type ("inte")
 

Additional Inherited Members

- Public Attributes inherited from o2scl::inte< func_t, fp_t >
int verbose
 Verbosity.
 
size_t last_iter
 The most recent number of iterations taken.
 
fp_t tol_rel
 The maximum relative uncertainty in the value of the integral (default $ 10^{-8} $)
 
fp_t tol_abs
 The maximum absolute uncertainty in the value of the integral (default $ 10^{-8} $)
 
bool err_nonconv
 If true, call the error handler if the routine does not converge or reach the desired tolerance (default true) More...
 
- Protected Attributes inherited from o2scl::inte< func_t, fp_t >
fp_t interror
 The uncertainty for the last integration computation.
 

Member Function Documentation

◆ integ_err()

template<class func_t = funct, class fp_t = double, const fp_t x5 = inte_gauss56_cern_x5_double, const fp_t w5 = inte_gauss56_cern_w5_double, const fp_t x6 = inte_gauss56_cern_x6_double, const fp_t w6 = inte_gauss56_cern_w6_double>
virtual int o2scl::inte_gauss56_cern< func_t, fp_t, x5, w5, x6, w6 >::integ_err ( func_t &  func,
fp_t  a,
fp_t  b,
fp_t &  res,
fp_t &  err 
)
inlinevirtual

This function always returns success.

Implements o2scl::inte< func_t, fp_t >.

Definition at line 141 of file inte_gauss56_cern.h.


The documentation for this class was generated from the following file:

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