1#ifndef STAN_MATH_PRIM_FUN_CONSTANTS_HPP
2#define STAN_MATH_PRIM_FUN_CONSTANTS_HPP
6#include <boost/math/constants/constants.hpp>
20static constexpr double e() {
return boost::math::constants::e<double>(); }
28 return boost::math::constants::euler<double>();
36static constexpr double pi() {
return boost::math::constants::pi<double>(); }
41static constexpr double EPSILON = std::numeric_limits<double>::epsilon();
46static constexpr double INFTY = std::numeric_limits<double>::infinity();
56static constexpr double NOT_A_NUMBER = std::numeric_limits<double>::quiet_NaN();
62static constexpr double TWO_PI = boost::math::constants::two_pi<double>();
80static constexpr double LOG_TWO = boost::math::constants::ln_two<double>();
86static constexpr double LOG_PI = 1.14472988584940017414342735135;
116static constexpr double LOG_TEN = boost::math::constants::ln_ten<double>();
122static constexpr double SQRT_TWO = boost::math::constants::root_two<double>();
128static constexpr double SQRT_PI = boost::math::constants::root_pi<double>();
135 = boost::math::constants::root_two_pi<double>();
148 = boost::math::constants::one_div_root_two<double>();
155 = boost::math::constants::one_div_root_pi<double>();
162 = boost::math::constants::one_div_root_two_pi<double>();
169 = boost::math::constants::two_div_root_pi<double>();
static constexpr double LOG_ZERO
The natural logarithm of 0, .
static constexpr double HALF_LOG_TWO
The value of half the natural logarithm 2, .
static constexpr double negative_infinity()
Return negative infinity.
static constexpr double LOG_HALF
The natural logarithm of 0.5, .
static constexpr double NOT_A_NUMBER
(Quiet) not-a-number value.
static constexpr double positive_infinity()
Return positive infinity.
static constexpr double SQRT_TWO_OVER_SQRT_PI
The square root of 2 divided by the square root of , .
static constexpr double EPSILON
Smallest positive value.
static constexpr double e()
Return the base of the natural logarithm.
static constexpr double LOG_TWO_PI
The natural logarithm of 2 plus the natural logarithm of , .
static constexpr double LOG_PI_OVER_FOUR
The value of one quarter the natural logarithm of , .
static constexpr double not_a_number()
Return (quiet) not-a-number.
const double POISSON_MAX_RATE
Largest rate parameter allowed in Poisson RNG.
static constexpr double LOG_TEN
The natural logarithm of 10, .
const double NEG_LOG_SQRT_TWO_PI
The value of minus the natural logarithm of the square root of , .
static constexpr double INV_SQRT_TWO
The value of 1 over the square root of 2, .
static constexpr double sqrt2()
Returns the square root of two.
static constexpr double INV_SQRT_TWO_PI
The value of 1 over the square root of , .
static constexpr double machine_precision()
Returns the difference between 1.0 and the next value representable.
static constexpr double NEGATIVE_INFTY
Negative infinity.
static constexpr double SQRT_TWO
The value of the square root of 2, .
static constexpr double SQRT_PI
The value of the square root of , .
static constexpr double LOG_TWO
The natural logarithm of 2, .
static constexpr double LOG_SQRT_PI
The natural logarithm of the square root of , .
static constexpr double LOG_PI
The natural logarithm of , .
static constexpr double SQRT_TWO_PI
The value of the square root of , .
static constexpr double log10()
Returns the natural logarithm of ten.
static constexpr double INV_SQRT_PI
The value of 1 over the square root of , .
static constexpr double TWO_PI
Twice the value of , .
static constexpr double TWO_OVER_SQRT_PI
The value of 2 over the square root of , .
static constexpr double pi()
Return the value of pi.
static constexpr double egamma()
Return the Euler's gamma constant.
static constexpr double HALF_LOG_TWO_PI
The value of half the natural logarithm , .
const double LOG_EPSILON
The natural logarithm of machine precision , .
static constexpr double INFTY
Positive infinity.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...