A namespace for various mathematical functions. More...
Functions | |
scalar | erfInv (const scalar y) |
scalar | invIncGamma (const scalar a, const scalar P) |
scalar | incGammaRatio_Q (const scalar a, const scalar x) |
scalar | incGammaRatio_P (const scalar a, const scalar x) |
scalar | incGamma_Q (const scalar a, const scalar x) |
scalar | incGamma_P (const scalar a, const scalar x) |
A namespace for various mathematical functions.
Inverse error function (tag:W): Winitzki, S. (2008). A handy approximation for the error function and its inverse. A lecture note obtained through private communication. URL:https://sites.google.com/site/winitzki/sergei-winitzkis-files (Retrieved on: 16 Feb 2021). Incomplete gamma functions (tag:DM): DiDonato, A. R., & Morris Jr, A. H. (1986). Computation of the incomplete gamma function ratios and their inverse. ACM Transactions on Mathematical Software (TOMS), 12(4), 377-393. DOI:10.1145/22721.23109
invIncGamma
is described in (DM:Sec. 4).incGammaRatio_Q
is described in (DM:Sec. 3).IND
is set to a value of 1.Foam::scalar erfInv | ( | const scalar | y | ) |
Definition at line 27 of file erfInv.C.
References Foam::endl(), Foam::constant::universal::h, k, Foam::log(), Foam::mag(), Foam::nl, Foam::constant::mathematical::pi(), Foam::sqr(), Foam::sqrt(), WarningInFunction, x, and y.
Referenced by normal::sample(), and multiNormal::sample().
Foam::scalar invIncGamma | ( | const scalar | a, |
const scalar | P | ||
) |
Definition at line 85 of file invIncGamma.C.
References B, Foam::constant::physicoChemical::c1, Foam::constant::physicoChemical::c2, D, Foam::constant::mathematical::e(), Foam::endl(), Foam::constant::mathematical::Eu(), Foam::exp(), Foam::lgamma(), Foam::log(), Foam::mag(), Foam::max(), Foam::minimaxs(), Foam::pow(), s, Foam::Sn(), Foam::sqr(), Foam::sqrt(), WarningInFunction, and y.
Referenced by massRosinRammler::sample().
Foam::scalar incGammaRatio_Q | ( | const scalar | a, |
const scalar | x | ||
) |
Definition at line 193 of file incGamma.C.
References Foam::constant::atomic::alpha, Foam::calcPE15(), Foam::calcQE11(), Foam::calcQE16(), Foam::calcTE18(), Foam::endl(), Foam::erf(), Foam::erfc(), Foam::exp(), Foam::factorial(), H(), L(), lambda(), Foam::log(), Foam::max(), n, phi, Foam::constant::mathematical::pi(), Foam::pow(), R, sigma(), Foam::sqrt(), Foam::sum(), WarningInFunction, x, and y.
Referenced by incGamma_Q(), incGammaRatio_P(), and LuoSvendsen::LuoSvendsen().
Foam::scalar incGammaRatio_P | ( | const scalar | a, |
const scalar | x | ||
) |
Definition at line 431 of file incGamma.C.
References incGammaRatio_Q(), and x.
Referenced by incGamma_P().
Foam::scalar incGamma_Q | ( | const scalar | a, |
const scalar | x | ||
) |
Definition at line 437 of file incGamma.C.
References incGammaRatio_Q(), and x.
Foam::scalar incGamma_P | ( | const scalar | a, |
const scalar | x | ||
) |
Definition at line 443 of file incGamma.C.
References incGammaRatio_P(), and x.
Referenced by RosinRammler::meanValue(), and massRosinRammler::sample().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.