STK++ 1.0
STK::Const Namespace Reference

This is the namespace containing the usual mathematical constants. More...

Functions

Real pi ()
 compute pi
Real pi_2 ()
 Compute $ \pi/2 $ using pi()
Real euler ()
 Compute the Euler constant.

Variables

static const Real _E_ = 2.718281828459045235360287471353
 e
static const Real _PI_ = 3.141592653589793238462643383279502884197169399375
 pi
static const Real _EULER_ = 0.57721566490153286060651209008240243104215933594
 gamma
static const Real _2PI_ = 6.283185307179586476925286766559
 2*pi
static const Real _PI_2_ = 1.570796326794896619231321691640
 pi/2
static const Real _PI_4_ = 0.785398163397448309615660845820
 pi/4
static const Real _1_PI = 0.318309886183790671537767526745
 1/pi
static const Real _2_PI_ = 0.636619772367581343075535053490
 2/pi
static const Real _LOG2_ = 0.301029995663981195213738894724
 log10(2)
static const Real _LOGE_ = 0.434294481903251827651128918917
 log10(e)
static const Real _LN2_ = 0.693147180559945309417232121458
 ln(2)
static const Real _LN10_ = 2.302585092994045684017991454684
 ln(10)
static const Real _SQRT2_ = 1.414213562373095048801688724210
 sqrt(2)
static const Real _SQRT3_ = 1.732050807568877293527446341506
 sqrt(3)
static const Real _SQRT32_ = 5.656854249492380195206754896838
 sqrt(32)
static const Real _1_SQRT2_ = 0.707106781186547524400844362105
 1/sqrt(2)
static const Real _SQRTPI_ = 1.772453850905516027298167483341
 sqrt(pi)
static const Real _SQRT2_PI_ = 0.797884560802865355879892119869
 sqrt(2/pi)
static const Real _SQRT2PI_ = 2.506628274631000502415765284811045253007
 sqrt(2pi)
static const Real _1_SQRTPI_ = 0.564189583547756286948079451561
 1/sqrt(pi)
static const Real _2_SQRTPI_ = 1.128379167095512573896158903122
 2/sqrt(pi)
static const Real _1_SQRT2PI_ = 0.398942280401432677939946059934
 1/sqrt(2pi)
static const Real _LNSQRTPI_ = 0.572364942924700087071713675677
 ln(sqrt(pi))
static const Real _LNSQRT2PI_ = 0.918938533204672741780329736406
 ln(sqrt(2*pi))
static const Real _LNSQRTPI_2_ = 0.225791352644727432363097614947
 ln(sqrt(pi/2))

Detailed Description

This is the namespace containing the usual mathematical constants.


Variable Documentation

const Real STK::Const::_E_ = 2.718281828459045235360287471353 [static]

e

Definition at line 50 of file STK_Const_Math.h.

const Real STK::Const::_PI_ = 3.141592653589793238462643383279502884197169399375 [static]
const Real STK::Const::_EULER_ = 0.57721566490153286060651209008240243104215933594 [static]

gamma

Definition at line 54 of file STK_Const_Math.h.

const Real STK::Const::_2PI_ = 6.283185307179586476925286766559 [static]

2*pi

Definition at line 56 of file STK_Const_Math.h.

Referenced by MTRand::randNorm().

const Real STK::Const::_PI_2_ = 1.570796326794896619231321691640 [static]

pi/2

Definition at line 58 of file STK_Const_Math.h.

const Real STK::Const::_PI_4_ = 0.785398163397448309615660845820 [static]

pi/4

Definition at line 60 of file STK_Const_Math.h.

const Real STK::Const::_1_PI = 0.318309886183790671537767526745 [static]

1/pi

Definition at line 62 of file STK_Const_Math.h.

const Real STK::Const::_2_PI_ = 0.636619772367581343075535053490 [static]

2/pi

Definition at line 64 of file STK_Const_Math.h.

const Real STK::Const::_LOG2_ = 0.301029995663981195213738894724 [static]

log10(2)

Definition at line 66 of file STK_Const_Math.h.

const Real STK::Const::_LOGE_ = 0.434294481903251827651128918917 [static]

log10(e)

Definition at line 68 of file STK_Const_Math.h.

const Real STK::Const::_LN2_ = 0.693147180559945309417232121458 [static]

ln(2)

Definition at line 70 of file STK_Const_Math.h.

Referenced by euler(), STK::Funct::expm1(), and STK::sumAlternateSerie().

const Real STK::Const::_LN10_ = 2.302585092994045684017991454684 [static]

ln(10)

Definition at line 72 of file STK_Const_Math.h.

const Real STK::Const::_SQRT2_ = 1.414213562373095048801688724210 [static]

sqrt(2)

Definition at line 74 of file STK_Const_Math.h.

Referenced by STK::Law::Normal::cdf(), and STK::sumAlternateSerie().

const Real STK::Const::_SQRT3_ = 1.732050807568877293527446341506 [static]

sqrt(3)

Definition at line 76 of file STK_Const_Math.h.

const Real STK::Const::_SQRT32_ = 5.656854249492380195206754896838 [static]

sqrt(32)

Definition at line 78 of file STK_Const_Math.h.

const Real STK::Const::_1_SQRT2_ = 0.707106781186547524400844362105 [static]

1/sqrt(2)

Definition at line 80 of file STK_Const_Math.h.

Referenced by STK::Funct::normal_cdf_raw().

const Real STK::Const::_SQRTPI_ = 1.772453850905516027298167483341 [static]

sqrt(pi)

Definition at line 82 of file STK_Const_Math.h.

const Real STK::Const::_SQRT2_PI_ = 0.797884560802865355879892119869 [static]

sqrt(2/pi)

Definition at line 84 of file STK_Const_Math.h.

const Real STK::Const::_SQRT2PI_ = 2.506628274631000502415765284811045253007 [static]
const Real STK::Const::_1_SQRTPI_ = 0.564189583547756286948079451561 [static]

1/sqrt(pi)

Definition at line 88 of file STK_Const_Math.h.

Referenced by STK::Law::Normal::cdf().

const Real STK::Const::_2_SQRTPI_ = 1.128379167095512573896158903122 [static]

2/sqrt(pi)

Definition at line 90 of file STK_Const_Math.h.

const Real STK::Const::_LNSQRTPI_ = 0.572364942924700087071713675677 [static]

ln(sqrt(pi))

Definition at line 94 of file STK_Const_Math.h.

const Real STK::Const::_LNSQRTPI_2_ = 0.225791352644727432363097614947 [static]

ln(sqrt(pi/2))

Definition at line 98 of file STK_Const_Math.h.

Referenced by STK::Funct::gammaLn().