Class inte_tanh_sinh_boost (o2scl)

O2scl : Class List

template<class func_t = funct, size_t max_refine = 15, class fp_t = double>
class o2scl::inte_tanh_sinh_boost : public o2scl::inte<funct, double>

Tanh-sinh integration class (Boost)

This class calls the error handler if the error returned by boost is larger than inte::tol_rel .

The native range of the integrator is -1 to 1, but supports infinite limits on either (or both) sides.

Public Functions

inte_tanh_sinh_boost()
~inte_tanh_sinh_boost()
int integ_err(func_t &func, fp_t a, fp_t b, fp_t &res, fp_t &err)

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

int integ_iu_err(func_t &func, fp_t a, fp_t &res, fp_t &err)

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

int integ_il_err(func_t &func, fp_t b, fp_t &res, fp_t &err)

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

int integ_i_err(func_t &func, fp_t &res, fp_t &err)

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

int integ_moo_err(func_t &func, fp_t &res, fp_t &err)

Integrate function func from -1 to 1 and place the result in res and the error in err.

Public Members

fp_t L1norm

L1 norm.

Protected Attributes

boost::math::quadrature::tanh_sinh<fp_t> it

The boost integration object.