loggamma()

Computes log of the absolute value of the gamma function

Syntax

loggamma(number)

Learn more about syntax conventions.

Parameters

Name Type Required Description
number real ✔️ The number for which to calculate the gamma.

Example

print result=loggamma(5)

Output

result
3.1780538303479458

Returns

  • Returns the natural logarithm of the absolute value of the gamma function of x.
  • For computing gamma function, see gamma().