23 #ifndef O2SCL_INTE_TANH_SINH_BOOST_H
24 #define O2SCL_INTE_TANH_SINH_BOOST_H
32 #if defined(O2SCL_NEW_BOOST_INTEGRATION) || defined(DOXYGEN)
34 #include <boost/math/quadrature/tanh_sinh.hpp>
35 #include <boost/math/quadrature/exp_sinh.hpp>
36 #include <boost/math/quadrature/sinh_sinh.hpp>
38 #include <o2scl/inte.h>
40 #ifndef DOXYGEN_NO_O2NS
49 template<
class func_t=funct,
size_t max_refine=15,
class fp_t=
double>
51 public inte<func_t, fp_t> {
56 boost::math::quadrature::tanh_sinh<fp_t>
it;
73 fp_t &res, fp_t &err) {
86 fp_t &res, fp_t &err) {
102 template<
class func_t=funct,
size_t max_refine=15,
class fp_t=
double>
104 public inte<func_t, fp_t> {
109 boost::math::quadrature::exp_sinh<fp_t>
it;
126 fp_t &res, fp_t &err) {
139 fp_t &res, fp_t &err) {
155 template<
class func_t=funct,
size_t max_refine=15,
class fp_t=
double>
161 boost::math::quadrature::sinh_sinh<fp_t>
it;
178 fp_t &res, fp_t &err) {
179 res=
it.integrate(func,this->tol_rel,&err,&
L1norm);
180 if (err>this->tol_rel) {
189 #ifndef DOXYGEN_NO_O2NS
Exp-sinh integration class (Boost)
@ exc_efailed
generic failure
boost::math::quadrature::exp_sinh< fp_t > it
The boost integration object.
#define O2SCL_ERR2(d, d2, n)
Set an error, two-string version.
boost::math::quadrature::sinh_sinh< fp_t > it
The boost integration object.
virtual int integ_err(func_t &func, fp_t &res, fp_t &err)
Integrate function func from a to b and place the result in res and the error in err.
The main O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl names...
virtual 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.
virtual 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.
virtual int integ_err(func_t &func, fp_t &res, fp_t &err)
Integrate function func from a to b and place the result in res and the error in err.
Sinh-sinh integration class (Boost)
boost::math::quadrature::tanh_sinh< fp_t > it
The boost integration object.
double tol_rel
The maximum relative uncertainty in the value of the integral (default )
Base integration class [abstract base].
virtual int integ_err(func_t &func, fp_t &res, fp_t &err)
Integrate function func from a to b and place the result in res and the error in err.
Tanh-sinh integration class (Boost)
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).