Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JMath/JConstants.hh
Go to the documentation of this file.
1#ifndef __JMATH__JCONSTANTS__
2#define __JMATH__JCONSTANTS__
3
4#include <math.h>
5
6
7/**
8 * \file
9 * Mathematical constants.
10 * \author mdejong
11 */
12namespace JMATH {}
13namespace JPP { using namespace JMATH; }
14
15namespace JMATH {
16
17 /**
18 * Mathematical constants.
19 */
20 static const double PI = acos(-1.0); //!< pi
21 static const double EULER = 0.577215664901533; //!< Euler number
22 static const double ZETA2 = PI * PI / 6.0; //!< Riemann-zeta function evaluated at 2
23
24 /**
25 * Computing quantities.
26 */
27 static const long long int KILOBYTE = 1024; //! Number of bytes in a kilo-byte
28 static const long long int MEGABYTE = KILOBYTE*KILOBYTE; //! Number of bytes in a mega-byte
29 static const long long int GIGABYTE = MEGABYTE*KILOBYTE; //! Number of bytes in a giga-byte
30}
31
32#endif
static const long long int KILOBYTE
Computing quantities.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).