Thermal-FIST  1.3
Package for hadron resonance gas model applications
xMath.h
Go to the documentation of this file.
1 /*
2  * Thermal-FIST package
3  *
4  * Copyright (c) 2014-2019 Volodymyr Vovchenko
5  *
6  * GNU General Public License (GPLv3 or later)
7  */
8 #ifndef XMATH_H
9 #define XMATH_H
10 
18 namespace thermalfist {
19 
21  namespace xMath {
22 
24  inline double Pi() { return 3.14159265358979323846; }
25 
27  inline double GeVtoifm() { return 5.06773; }
28 
30  inline double GeVtoifm2() { return GeVtoifm() * GeVtoifm(); }
31 
33  inline double GeVtoifm3() { return GeVtoifm() * GeVtoifm() * GeVtoifm(); }
34 
36  inline double mnucleon() { return 0.938; }
37 
39  inline double mpion() { return 0.138; }
40 
42  double BesselI(int n, double x);
46  double BesselK(int n, double x);
47  double BesselI0(double x);
48  double BesselK0(double x);
49  double BesselI1(double x);
50  double BesselK1(double x);
51  double BesselJ0(double x);
52  double BesselJ1(double x);
53  double BesselY0(double x);
54  double BesselY1(double x);
55  double StruveH0(double x);
56  double StruveH1(double x);
57  double StruveL0(double x);
58  double StruveL1(double x);
59 
60  double BesselK0exp(double x); // modified Bessel function K_0(x), divided by exponential factor
61  double BesselK1exp(double x); // modified Bessel function K_1(x), divided by exponential factor
62  double BesselKexp(int n, double x); // integer order modified Bessel function K_n(x), divided by exponential factor
63 
64  double BesselI0exp(double x); // modified Bessel function I_0(x), divided by exponential factor
65  double BesselI1exp(double x); // modified Bessel function I_1(x), divided by exponential factor
66  double BesselIexp(int n, double x); // integer order modified Bessel function I_n(x), divided by exponential factor
67 
68 
69  // Note that the functions Gamma and LogGamma are mutually dependent.
70  double LogGamma(double);
71  double Gamma(double);
73  }
74 
75 } // namespace thermalfist
76 
77 #endif // XMATH_H
double mpion()
Pion's mass. Value as in UrQMD.
Definition: xMath.h:39
double StruveH0(double x)
Struve functions of order 0.
Definition: xMath.cpp:384
double GeVtoifm()
A constant to transform GeV into fm .
Definition: xMath.h:27
double BesselKexp(int n, double x)
Definition: xMath.cpp:697
double Gamma(double)
Definition: xMath.cpp:844
double GeVtoifm3()
A constant to transform GeV into fm .
Definition: xMath.h:33
double BesselI1exp(double x)
Definition: xMath.cpp:759
double BesselI0exp(double x)
Definition: xMath.cpp:727
double Pi()
Pi constant.
Definition: xMath.h:24
double BesselJ0(double x)
Bessel function J0(x) for any real x.
Definition: xMath.cpp:239
double StruveL0(double x)
Modified Struve functions of order 0.
Definition: xMath.cpp:535
double BesselJ1(double x)
Bessel function J1(x) for any real x.
Definition: xMath.cpp:275
double LogGamma(double)
Definition: xMath.cpp:964
double BesselI1(double x)
modified Bessel function I_1(x)
Definition: xMath.cpp:90
double BesselIexp(int n, double x)
Definition: xMath.cpp:795
double BesselI(int n, double x)
integer order modified Bessel function I_n(x)
Definition: xMath.cpp:191
double BesselK(int n, double x)
integer order modified Bessel function K_n(x)
Definition: xMath.cpp:161
double GeVtoifm2()
A constant to transform GeV into fm .
Definition: xMath.h:30
double StruveL1(double x)
Modified Struve functions of order 1.
Definition: xMath.cpp:582
double BesselK1(double x)
modified Bessel function K_1(x)
Definition: xMath.cpp:126
double StruveH1(double x)
Struve functions of order 1.
Definition: xMath.cpp:454
double BesselK0(double x)
modified Bessel function K_0(x)
Definition: xMath.cpp:55
double BesselY0(double x)
Bessel function Y0(x) for positive x.
Definition: xMath.cpp:312
double BesselI0(double x)
modified Bessel function I_0(x)
Definition: xMath.cpp:23
double BesselY1(double x)
Bessel function Y1(x) for positive x.
Definition: xMath.cpp:347
double BesselK0exp(double x)
Definition: xMath.cpp:627
double BesselK1exp(double x)
Definition: xMath.cpp:662
double mnucleon()
Nucleon's mass. Value as in UrQMD.
Definition: xMath.h:36
The main namespace where all classes and functions of the Thermal-FIST library reside.