Class inte_qags_gsl (o2scl)

O2scl : Class List

template<class func_t = funct>
class inte_qags_gsl : public o2scl::inte_singular_gsl<funct>

Integrate a function with a singularity (GSL)

If a function is unbounded but has a finite integral, using the adaptive algorithm described for inte_qag_gsl to compute that integral (up to specified tolerance) will converge very slowly. The integration routine of this class remedies this by combining the adaptive algorithm with a series-acceleration method.

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

Public Functions

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

Integrate function func from a to b and place the result in res and the error in err.

inline virtual const char *type()

Return string denoting type (“inte_qags_gsl”)