Skip to content

logFactorial(n): number

Defined in: packages/combinatorics/src/factorial.ts:53

Take the natural logarithm of n! for any non-negative safe integer n.

O(1) time, using a once-built table of exact log-factorials up to 170 and a Stirling expansion thereafter.

number

number

With INVALID_COUNT for an invalid count.