1 #ifndef STAN_MATH_PRIM_SCAL_FUN_CONSTANTS_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_CONSTANTS_HPP 6 #include <boost/math/constants/constants.hpp> 19 const double E = boost::math::constants::e<double>();
48 const double INFTY = std::numeric_limits<double>::infinity();
58 const double NOT_A_NUMBER = std::numeric_limits<double>::quiet_NaN();
63 const double EPSILON = std::numeric_limits<double>::epsilon();
80 inline double pi() {
return boost::math::constants::pi<double>(); }
87 inline double e() {
return E; }
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
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.
fvar< T > inv(const fvar< T > &x)