STK++ 1.0
STK_Const_Math.h File Reference

In this file we give the main mathematical constants. More...

#include "../../STKernel/include/STK_Real.h"
Include dependency graph for STK_Const_Math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  STK
 

STK means the Statistical ToolKit.


namespace  STK::Const
 

This is the namespace containing the usual mathematical constants.


Functions

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

Variables

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

Detailed Description

In this file we give the main mathematical constants.

Many of them have been obtained using the infinite precision calculator bc.

Definition in file STK_Const_Math.h.