1 #ifndef STAN__MATH__CONSTANTS_HPP
2 #define STAN__MATH__CONSTANTS_HPP
4 #include <boost/math/constants/constants.hpp>
14 const double E = boost::math::constants::e<double>();
43 const double INFTY = std::numeric_limits<double>::infinity();
53 const double NOT_A_NUMBER = std::numeric_limits<double>::quiet_NaN();
58 const double EPSILON = std::numeric_limits<double>::epsilon();
78 return boost::math::constants::pi<double>();
const double LOG_2
The natural logarithm of 2, .
const double INV_SQRT_TWO_PI
const double NOT_A_NUMBER
(Quiet) not-a-number value.
const double LOG_10
The natural logarithm of 10, .
double sqrt2()
Return the square root of two.
const double TWO_OVER_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, .
fvar< T > sqrt(const fvar< T > &x)
const double EPSILON
Smallest positive value.
const double LOG_PI_OVER_FOUR
double machine_precision()
Returns the difference between 1.0 and the next value representable.
const double NEG_TWO_OVER_SQRT_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, .
double log10()
Return natural logarithm of ten.
const double INFTY
Positive infinity.
double pi()
Return the value of pi.
double not_a_number()
Return (quiet) not-a-number.
const double NEGATIVE_INFTY
Negative infinity.
fvar< T > log(const fvar< T > &x)
const double NEGATIVE_EPSILON
Largest negative value (i.e., smallest absolute value).
double negative_infinity()
Return negative infinity.