Class inte_qagil_gsl (o2scl)

O2scl : Class List

template<class func_t = funct>
class inte_qagil_gsl : public o2scl::inte_transform_gsl<funct>

Integrate a function over the interval \( (-\infty, b] \) (GSL)

The integral on the unbounded interval is rewritten over the semi-open interval \( (0, 1] \) via a variable transformation,

\[ \int_{-\infty}^b f(x)~dx = \int_0^1 f\left[b - (1-t)/t\right]t^{-2}~dt, \]
and the right hand side is evaluated with o2scl::inte_qags_gsl.

See GSL-based integration details in the User’s guide for general information about the GSL integration classes.

Public Functions

inline virtual int integ_il_err(func_t &func, double b, double &res, double &err)

Integrate function func from \( -\infty \) to b and place the result in res and the error in err.

inline virtual int integ_err(func_t &func, double a, double b, double &res, double &err)

Integrate function func from \( -\infty \) to b and place the result in res and the error in err.

The value given is a is ignored.

inline virtual const char *type()

Return string denoting type (“inte_qagil_gsl”)

Protected Functions

inline virtual double transform(double t, func_t &func)

Transform to \( t \in (0,1] \).

Protected Attributes

double upper_limit

The upper limit.