Stan  1.0
probability, sampling & optimization
constants.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__CONSTANTS_HPP__
2 #define __STAN__MATH__CONSTANTS_HPP__
3 
4 #include <boost/math/constants/constants.hpp>
5 
6 namespace stan {
7 
8  namespace math {
9 
14  const double E = boost::math::constants::e<double>();
15 
20  const double SQRT_2 = std::sqrt(2.0);
21 
26  const double LOG_2 = std::log(2.0);
27 
32  const double LOG_10 = std::log(10.0);
33 
37  const double INFTY = std::numeric_limits<double>::infinity();
38 
42  const double NEGATIVE_INFTY = - std::numeric_limits<double>::infinity();
43 
47  const double NOT_A_NUMBER = std::numeric_limits<double>::quiet_NaN();
48 
53 
58 
59  }
60 }
61 
62 #endif
var sqrt(const var &a)
Return the square root of the specified variable (cmath).
Definition: agrad.hpp:1761
var log(const var &a)
Return the natural log of the specified variable (cmath).
Definition: agrad.hpp:1730
double epsilon()
Return minimum positive number representable.
const double NEGATIVE_EPSILON
Largest negative value (i.e., smallest absolute value).
Definition: constants.hpp:57
const double LOG_2
The natural logarithm of 2, .
Definition: constants.hpp:26
const double SQRT_2
The value of the square root of 2, .
Definition: constants.hpp:20
const double EPSILON
Smallest positive value.
Definition: constants.hpp:52
const double E
The base of the natural logarithm, .
Definition: constants.hpp:14
const double INFTY
Positive infinity.
Definition: constants.hpp:37
const double NOT_A_NUMBER
(Quiet) not-a-number value.
Definition: constants.hpp:47
const double NEGATIVE_INFTY
Negative infinity.
Definition: constants.hpp:42
const double LOG_10
The natural logarithm of 10, .
Definition: constants.hpp:32
Probability, optimization and sampling library.
Definition: agrad.cpp:6

     [ Stan Home Page ] © 2011–2012, Stan Development Team.