Investment Studio > Expressions > Functions > Statistical > GAMMA

float gamma(float argument)

Returns the value of the gamma function G(argument).

argument must be > 0.

Mathematically,

  ¥  
G(x) =  ó e-u ux-1 du
ô
õ
  0  

The gamma functions is a generalization of the factorial (see fact):

G(n) = (n - 1)!

G(z + 1) = z G(z)

G(p / 2) = p1/2

Example

=gamma(5)

equals 4! = fact(4) = 24.

See also fact, gammadist, gammainv, gammaln.