Class inte_qagiu_gsl (o2scl)

O2scl : Class List

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

Integrate a function over the interval \( [a, \infty) \) (GSL)

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

\[ \int_a^{\infty} f(x)~dx = \int_0^1 f(a + (1-t)/t)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_iu_err(func_t &func, double a, double &res, double &err)

Integrate a function over the interval \( [a, \infty) \) giving result res and error err.

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

Integrate a function over the interval \( [a, \infty) \) giving result res and error err.

The value b is ignored.

inline virtual const char *type()

Return string denoting type (“inte_qagiu_gsl”)

Protected Functions

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

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

Protected Attributes

double lower_limit

The lower limit.