Class inte_qagiu_gsl (o2scl)¶
-
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 errorerr
.
-
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 errorerr
.The value
b
is ignored.
-
inline virtual const char *type()¶
Return string denoting type (“inte_qagiu_gsl”)
Protected Functions
Protected Attributes
-
double lower_limit¶
The lower limit.
-
inline virtual int integ_iu_err(func_t &func, double a, double &res, double &err)¶