tango.math.GammaFunction

Implementation of the gamma and beta functions, and their integrals.

Members

Functions

beta
real beta(real x, real y)

Beta function

betaIncomplete
real betaIncomplete(real aa, real bb, real xx)

Incomplete beta integral

betaIncompleteInv
real betaIncompleteInv(real aa, real bb, real yy0)

Inverse of incomplete beta integral

digamma
real digamma(real x)

Digamma function

gamma
real gamma(real x)

The Gamma function, $(GAMMA)(x)

gammaIncomplete
real gammaIncomplete(real a, real x)
gammaIncompleteCompl
real gammaIncompleteCompl(real a, real x)

Incomplete gamma integral and its complement

gammaIncompleteComplInv
real gammaIncompleteComplInv(real a, real p)

Inverse of complemented incomplete gamma integral

logGamma
real logGamma(real x)

Natural logarithm of gamma function.

sgnGamma
real sgnGamma(real x)

The sign of $(GAMMA)(x).

Variables

MAXGAMMA
enum real MAXGAMMA;

The maximum value of x for which gamma(x) < real.infinity.

Meta

License

BSD style: $(LICENSE)

Authors

Stephen L. Moshier (original C code). Conversion to D by Don Clugston