Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
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

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