Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Functions | Variables
constants.hpp File Reference
#include <boost/math/constants/constants.hpp>

Go to the source code of this file.

Namespaces

namespace  stan
 Probability, optimization and sampling library.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

double stan::math::pi ()
 Return the value of pi.
 
double stan::math::e ()
 Return the base of the natural logarithm.
 
double stan::math::sqrt2 ()
 Return the square root of two.
 
double stan::math::log10 ()
 Return natural logarithm of ten.
 
double stan::math::positive_infinity ()
 Return positive infinity.
 
double stan::math::negative_infinity ()
 Return negative infinity.
 
double stan::math::not_a_number ()
 Return (quiet) not-a-number.
 
double stan::math::epsilon ()
 Return minimum positive number representable.
 
double stan::math::negative_epsilon ()
 Return maximum negative number (i.e., negative number with smallest absolute value).
 

Variables

const double stan::math::E = boost::math::constants::e<double>()
 The base of the natural logarithm, $ e $.
 
const double stan::math::SQRT_2 = std::sqrt(2.0)
 The value of the square root of 2, $ \sqrt{2} $.
 
const double stan::math::INV_SQRT_2 = 1.0 / SQRT_2
 The value of 1 over the square root of 2, $ 1 / \sqrt{2} $.
 
const double stan::math::LOG_2 = std::log(2.0)
 The natural logarithm of 2, $ \log 2 $.
 
const double stan::math::LOG_10 = std::log(10.0)
 The natural logarithm of 10, $ \log 10 $.
 
const double stan::math::INFTY = std::numeric_limits<double>::infinity()
 Positive infinity.
 
const double stan::math::NEGATIVE_INFTY = - std::numeric_limits<double>::infinity()
 Negative infinity.
 
const double stan::math::NOT_A_NUMBER = std::numeric_limits<double>::quiet_NaN()
 (Quiet) not-a-number value.
 
const double stan::math::EPSILON = std::numeric_limits<double>::epsilon()
 Smallest positive value.
 
const double stan::math::NEGATIVE_EPSILON = - std::numeric_limits<double>::epsilon()
 Largest negative value (i.e., smallest absolute value).
 
const double stan::math::LOG_PI_OVER_FOUR = std::log(boost::math::constants::pi<double>()) / 4.0
 
const double stan::math::TWO_OVER_SQRT_PI = 2.0 / std::sqrt(boost::math::constants::pi<double>())
 
const double stan::math::NEG_TWO_OVER_SQRT_PI = -TWO_OVER_SQRT_PI
 
const double stan::math::INV_SQRT_TWO_PI = 1.0 / std::sqrt(2.0 * boost::math::constants::pi<double>())
 

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