BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Special mathematical functions. The naming and numbering of the functions is taken from Matt Austern, (Draft) Technical Report on Standard Library Extensions, N1687=04-0127, September 10, 2004
Special Functions from MathCore | |
double | ROOT::Math::erf (double x) |
double | ROOT::Math::erfc (double x) |
double | ROOT::Math::tgamma (double x) |
double | ROOT::Math::lgamma (double x) |
double | ROOT::Math::inc_gamma (double a, double x) |
double | ROOT::Math::inc_gamma_c (double a, double x) |
double | ROOT::Math::beta (double x, double y) |
double | ROOT::Math::inc_beta (double x, double a, double b) |
double | ROOT::Math::sinint (double x) |
double | ROOT::Math::cosint (double x) |
double ROOT::Math::beta | ( | double | x, |
double | y | ||
) |
double ROOT::Math::cosint | ( | double | x | ) |
Calculates the real part of the cosine integral Re(Ci).
For x<0, the imaginary part is \pi i and has to be added by the user, for x>0 the imaginary part of Ci(x) is 0.
For detailed description see Mathworld. The implementation used is that of CERNLIB, based on Y.L. Luke, The special functions and their approximations, v.II, (Academic Press, New York l969) 325-326.
double ROOT::Math::erf | ( | double | x | ) |
Error function encountered in integrating the normal distribution.
For detailed description see Mathworld. The implementation used is that of GSL. This function is provided only for convenience, in case your standard C++ implementation does not support it. If it does, please use these standard version!
double ROOT::Math::erfc | ( | double | x | ) |
double ROOT::Math::inc_beta | ( | double | x, |
double | a, | ||
double | b | ||
) |
double ROOT::Math::inc_gamma | ( | double | a, |
double | x | ||
) |
Calculates the normalized (regularized) lower incomplete gamma function (lower integral)
For a detailed description see Mathworld. The implementation used is that of Cephes from S. Moshier. In this implementation both a and x must be positive. If a is negative 1.0 is returned for every x. This is correct only if a is negative integer. For a>0 and x<0 0 is returned (this is correct only for a>0 and x=0).
double ROOT::Math::inc_gamma_c | ( | double | a, |
double | x | ||
) |
Calculates the normalized (regularized) upper incomplete gamma function (upper integral)
For a detailed description see Mathworld. The implementation used is that of Cephes from S. Moshier. In this implementation both a and x must be positive. If a is negative, 0 is returned for every x. This is correct only if a is negative integer. For a>0 and x<0 1 is returned (this is correct only for a>0 and x=0).
double ROOT::Math::lgamma | ( | double | x | ) |
Calculates the logarithm of the gamma function
The implementation used is that of Cephes from S. Moshier.
double ROOT::Math::sinint | ( | double | x | ) |