gsl_inte_qagiu Class Template Reference

Integrate a function from $ a $ to $ \infty $ (GSL). More...

#include <gsl_inte_qagiu.h>

Inheritance diagram for gsl_inte_qagiu:

gsl_inte_transform gsl_inte_singular gsl_inte_kronrod gsl_inte_table inte gsl_inte

Detailed Description

template<class param_t, class func_t = funct<param_t>>
class gsl_inte_qagiu< param_t, func_t >

Integrate a function from $ a $ to $ \infty $ (GSL).

The number of subdivisions of the original interval which this class is allowed to make is dictated by the workspace size for the integration class, which can be set using gsl_inte_table::set_wkspace() .

Todo:
I had to add extra code to check for non-finite values for some integrations. This should be checked.
The extra line was of the form:
      if (!finite(area1)) area1=0.0;
      

Definition at line 49 of file gsl_inte_qagiu.h.


Public Member Functions

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

Protected Member Functions

virtual double transform (func_t &func, double t, param_t &pa)
 Transform to $ t \in (0,1] $.

Protected Attributes

double la
 Store the lower limit.

Member Function Documentation

virtual double integ ( func_t &  func,
double  a,
double  b,
param_t &  pa 
) [inline, virtual]

Integrate function func from a to $ \infty $.

The value b is ignored.

Implements inte.

Definition at line 69 of file gsl_inte_qagiu.h.

virtual int integ_err ( func_t &  func,
double  a,
double  b,
param_t &  pa,
double &  res,
double &  err2 
) [inline, virtual]

Integrate function func from a to $ \infty $ giving result res and error err.

The value b is ignored.

Implements inte.

Definition at line 82 of file gsl_inte_qagiu.h.


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