Skip to main content
MedCalc

LNFACT function

Logarithm of a factorial. LNFACT(n) returns the natural logarithm of the factorial of n. The factorial of a number n, n!, is equal to 1*2*3*…*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

Calculator

LNFACT( )  363.739375555563

Graph

LNFACT

See also

External links