Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ integrate_1d_gauss_kronrod_tol() [2/2]

template<typename F , typename... Args, require_all_st_arithmetic< Args... > * = nullptr>
double stan::math::integrate_1d_gauss_kronrod_tol ( const F &  f,
double  a,
double  b,
double  relative_tolerance,
double  absolute_tolerance,
int  max_depth,
std::ostream *  msgs,
const Args &...  args 
)
inline

Compute the integral of the single variable function f from a to b to within a specified relative tolerance using adaptive Gauss-Kronrod (G21,K21) quadrature.

a and b can be finite or infinite.

Template Parameters
Ftype of function to integrate
Argstypes of additional arguments forwarded to f (all arithmetic)
Parameters
fthe function to be integrated
alower limit of integration
bupper limit of integration
relative_tolerancerelative tolerance passed to Boost quadrature
absolute_toleranceabsolute-error floor on the convergence test
max_depthmaximum recursive bisection depth passed to Boost quadrature
[in,out]msgsthe print stream for warning messages
argsadditional arguments passed to f
Returns
numeric integral of function f

Definition at line 127 of file integrate_1d_gauss_kronrod.hpp.