Namespaces | Functions | Variables
constants.hpp File Reference
#include <boost/math/constants/constants.hpp>
#include <limits>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 

Functions

double stan::math::pi ()
 
double stan::math::e ()
 
double stan::math::sqrt2 ()
 
double stan::math::log10 ()
 
double stan::math::positive_infinity ()
 
double stan::math::negative_infinity ()
 
double stan::math::not_a_number ()
 
double stan::math::machine_precision ()
 

Variables

const double stan::math::E = boost::math::constants::e<double>()
 
const double stan::math::SQRT_2 = std::sqrt(2.0)
 
const double stan::math::INV_SQRT_2 = 1.0 / SQRT_2
 
const double stan::math::LOG_2 = std::log(2.0)
 
const double stan::math::LOG_10 = std::log(10.0)
 
const double stan::math::INFTY = std::numeric_limits<double>::infinity()
 
const double stan::math::NEGATIVE_INFTY = -std::numeric_limits<double>::infinity()
 
const double stan::math::NOT_A_NUMBER = std::numeric_limits<double>::quiet_NaN()
 
const double stan::math::EPSILON = std::numeric_limits<double>::epsilon()
 
const double stan::math::NEGATIVE_EPSILON = -std::numeric_limits<double>::epsilon()
 
const double stan::math::POISSON_MAX_RATE = std::pow(2.0, 30)
 
const double stan::math::LOG_PI_OVER_FOUR = std::log(boost::math::constants::pi<double>()) / 4.0
 
const double stan::math::SQRT_PI = std::sqrt(boost::math::constants::pi<double>())
 
const double stan::math::SQRT_2_TIMES_SQRT_PI = SQRT_2 * SQRT_PI
 
const double stan::math::TWO_OVER_SQRT_PI = 2.0 / SQRT_PI
 
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>())
 
const double stan::math::LOG_PI = std::log(boost::math::constants::pi<double>())
 
const double stan::math::LOG_SQRT_PI = std::log(SQRT_PI)
 
const double stan::math::LOG_ZERO = std::log(0.0)
 
const double stan::math::LOG_TWO = std::log(2.0)
 
const double stan::math::LOG_HALF = std::log(0.5)
 
const double stan::math::NEG_LOG_TWO = -LOG_TWO
 
const double stan::math::NEG_LOG_SQRT_TWO_PI = -std::log(std::sqrt(2.0 * boost::math::constants::pi<double>()))
 
const double stan::math::NEG_LOG_PI = -LOG_PI
 
const double stan::math::NEG_LOG_SQRT_PI = -std::log(std::sqrt(boost::math::constants::pi<double>()))
 
const double stan::math::NEG_LOG_TWO_OVER_TWO = -LOG_TWO / 2.0
 
const double stan::math::LOG_TWO_PI = LOG_TWO + LOG_PI
 
const double stan::math::NEG_LOG_TWO_PI = -LOG_TWO_PI