1 #ifndef STAN_MATH_PRIM_SCAL_FUN_CONSTANTS_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_CONSTANTS_HPP
4 #include <boost/math/constants/constants.hpp>
15 const double E = boost::math::constants::e<double>();
44 const double INFTY = std::numeric_limits<double>::infinity();
50 = - std::numeric_limits<double>::infinity();
56 = std::numeric_limits<double>::quiet_NaN();
61 const double EPSILON = std::numeric_limits<double>::epsilon();
67 = - std::numeric_limits<double>::epsilon();
79 =
std::log(boost::math::constants::pi<double>()) / 4.0;
87 return boost::math::constants::pi<double>();
166 = 1.0 /
std::sqrt(2.0 * boost::math::constants::pi<double>());
const double LOG_2
The natural logarithm of 2, .
const double INV_SQRT_TWO_PI
fvar< T > sqrt(const fvar< T > &x)
const double NOT_A_NUMBER
(Quiet) not-a-number value.
fvar< T > log(const fvar< T > &x)
const double NEG_LOG_SQRT_PI
const double LOG_10
The natural logarithm of 10, .
fvar< T > log10(const fvar< T > &x)
double sqrt2()
Return the square root of two.
const double TWO_OVER_SQRT_PI
const double SQRT_2_TIMES_SQRT_PI
const double SQRT_2
The value of the square root of 2, .
const double INV_SQRT_2
The value of 1 over the square root of 2, .
const double EPSILON
Smallest positive value.
const double LOG_PI_OVER_FOUR
Log pi divided by 4 .
double machine_precision()
Returns the difference between 1.0 and the next value representable.
const double NEG_TWO_OVER_SQRT_PI
const double POISSON_MAX_RATE
Largest rate parameter allowed in Poisson RNG.
const double NEG_LOG_SQRT_TWO_PI
double positive_infinity()
Return positive infinity.
double e()
Return the base of the natural logarithm.
const double E
The base of the natural logarithm, .
const double NEG_LOG_TWO_PI
const double NEG_LOG_TWO_OVER_TWO
const double INFTY
Positive infinity.
double pi()
Return the value of pi.
fvar< T > pow(const fvar< T > &x1, const fvar< T > &x2)
double not_a_number()
Return (quiet) not-a-number.
const double NEGATIVE_INFTY
Negative infinity.
const double NEGATIVE_EPSILON
Largest negative value (i.e., smallest absolute value).
double negative_infinity()
Return negative infinity.