gammaln
Logarithm of gamma function
📝Syntax
R = gammaln(M)
📥Input Arguments
Parameter Description
M a real single or real double matrix.
📤Output Arguments
Parameter Description
R result of gammaln function.
📄Description

The function gammaln(A) computes the natural logarithm of the gamma function for a given input A, expressed as gammaln(A) = log(gamma(A)).

It's important to note that A must be a nonnegative real number.

Using gammaln helps prevent potential underflow and overflow issues that might arise if directly computing log(gamma(A)).

💡Examples
R = gammaln([0:0.1:pi])
🔗See Also
gamma
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub