Class inte_adapt_cern2 (o2scl)

O2scl : Class List

class inte_adapt_cern2

Basic usage

template<class inte_t, typename func_t, class fp_t>
inline int integ_err_funct(inte_t &it, func_t &func, fp_t a, fp_t b, fp_t &res, fp_t &err, double integ_tol)

Integrate function func from a to b giving result res and error err.

template<typename func_t, class fp_t>
inline int integ_err(func_t &func, fp_t a, fp_t b, fp_t &res, fp_t &err)
template<class inte_t, typename func_t, class fp_t>
inline int integ_err_int(inte_t &it, func_t &&func, fp_t a, fp_t b, fp_t &res, fp_t &err, double integ_tol, double func_tol)
template<typename func_t, class fp_t>
inline int integ_err_multip(func_t &&func, fp_t a, fp_t b, fp_t &res, fp_t &err, double integ_tol = -1.0)

Integrate function func from a to b using multipreicsion, placing the result in res and the error in err.

Public Types

typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<25>> cpp_dec_float_25
typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<35>> cpp_dec_float_35
typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>> cpp_dec_float_50

Public Functions

inline inte_adapt_cern2()

Public Members

int last_iter
int nsub
double tol_rel_multip

The maximum relative uncertainty for multipreicsion integrals (default \( -1 \))

double pow_tol_func

Power for tolerance of function evaluations in multiprecision integrations (default 1.33)

double tol_rel

The maximum relative uncertainty in the value of the integral (default \( 10^{-8} \))

double tol_abs

The maximum absolute uncertainty in the value of the integral (default \( 10^{-8} \))

int verbose

Verbosity parameter.

bool err_nonconv

If true, call the error handler if the integration does not succeed (default true)