ocean.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).

Static variables

MAXGAMMA
real MAXGAMMA;

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

Meta

License

Tango Dual License: 3-Clause BSD License / Academic Free License v3.0. See LICENSE_TANGO.txt for details.

Authors

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