Wilang Documentation1.0.0+4

lgamma#

Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.

Available in: math cells, REPL.

Syntax#

lgamma(n)

Arguments and behavior#

Integer counts must satisfy the function domain. Random functions do not promise a fixed sample. The example returns scalar (number).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
lgamma(5)

Expected result: 3.1780538303479.

See also#

gamma

All functions · Math guides