STK++ 0.9.13
STK_Const_Math.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff, Université Lille 1, Inria
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::STatistiK::Analysis
27 * Purpose: Main mathematical constants
28 * Author: Serge Iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 *
30 **/
31
39#ifndef STK_CONST_MATH_H
40#define STK_CONST_MATH_H
41
42#include <STKernel.h>
43
44namespace STK
45{
46
47namespace Const
48{
50static const Real _E_ = 2.718281828459045235360287471353;
52static const Real _PI_ = 3.141592653589793238462643383279502884197169399375;
54static const Real _EULER_ = 0.57721566490153286060651209008240243104215933594;
56static const Real _2PI_ = 6.283185307179586476925286766559;
58static const Real _PI_2_ = 1.570796326794896619231321691640;
60static const Real _PI_4_ = 0.785398163397448309615660845820;
62static const Real _1_PI = 0.318309886183790671537767526745;
64static const Real _2_PI_ = 0.636619772367581343075535053490;
66static const Real _LOG2_ = 0.301029995663981195213738894724;
68static const Real _LOGE_ = 0.434294481903251827651128918917;
70static const Real _LN2_ = 0.693147180559945309417232121458;
72static const Real _LN10_ = 2.302585092994045684017991454684;
74static const Real _SQRT2_ = 1.414213562373095048801688724210;
76static const Real _SQRT3_ = 1.732050807568877293527446341506;
78static const Real _SQRT32_ = 5.656854249492380195206754896838;
80static const Real _1_SQRT2_ = 0.707106781186547524400844362105;
82static const Real _SQRTPI_ = 1.772453850905516027298167483341;
84static const Real _SQRT2_PI_ = 0.797884560802865355879892119869;
86static const Real _SQRT2PI_ = 2.506628274631000502415765284811045253007;
88static const Real _1_SQRTPI_ = 0.564189583547756286948079451561;
90static const Real _2_SQRTPI_ = 1.128379167095512573896158903122;
92static const Real _1_SQRT2PI_ = 0.398942280401432677939946059934;
94static const Real _LNSQRTPI_ = 0.572364942924700087071713675677;
96static const Real _LNSQRT2PI_ = 0.918938533204672741780329736406;
98static const Real _LNSQRTPI_2_ = 0.225791352644727432363097614947;
99
104
108inline Real pi_2() { return pi()/2.0;}
109
114
115} // namespace Const
116
117} // namespace STK
118
119#endif // STK_CONSTMATH_H
This file include all the header files of the project STKernel.
Real pi_2()
Compute using pi()
Real euler()
Compute the Euler constant.
Real pi()
compute pi
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.