LNFACT function
Logarithm of a factorial. LNFACT(n) returns the natural logarithm of the factorial of n. The factorial of a number n,
$$ \operatorname{lnfact}\left(n\right) = \operatorname{ln}\left( \prod_{k=1}^n k \right) $$
The argument n cannot be negative.
The argument n can be a real number or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the LNFACT function applied to all elements.
Example
LNFACT(1000) equals 5912.128178488