Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

GAMMA LN(X) Natural Log of the GAMMA function

Scroll Prev Top Next More

Returns the natural log of the GAMMA function of X.  The GAMMA function is a generalization of the factorial function that works on all positive values of X.  For an integer N the factorial of N is equal to the GAMMA function of N+1.  The GAMMA LN function is very useful for computing combinitorial factors.

Example

EXP(GAMMA LN(4)) is equal to 6 or 3 factorial

EXP(GAMMA LN(things to pick from+1) - 
GAMMA LN(things to pick from-things picked+1) - 
GAMMA LN(things picked+1)) is the number of combinations possible
Units:GAMMA LN(dmnl) -> dmnl

The input to the GAMMA LN function must be dimensionless.

Availability: Not PLE or PLE Plus.

 

Sample model: GAMMA LN.mdl in FunctionExamples