1 #ifndef __STAN__PROB__DISTRIBUTIONS_CONSTANTS_HPP__
2 #define __STAN__PROB__DISTRIBUTIONS_CONSTANTS_HPP__
4 #include <boost/math/constants/constants.hpp>
13 const double LOG_PI =
std::log(boost::math::constants::pi<double>());
15 const double LOG_ZERO =
std::log(0.0);
17 const double LOG_TWO =
std::log(2.0);
19 const double NEG_LOG_TWO = - LOG_TWO;
21 const double NEG_LOG_SQRT_TWO_PI
24 const double NEG_LOG_PI = - LOG_PI;
26 const double NEG_LOG_SQRT_PI
29 const double NEG_LOG_TWO_OVER_TWO = - LOG_TWO / 2.0;
var sqrt(const var &a)
Return the square root of the specified variable (cmath).
var log(const var &a)
Return the natural log of the specified variable (cmath).
const double SQRT_2
The value of the square root of 2, .
Probability, optimization and sampling library.