# logFactorial

> **logFactorial**(`n`): `number`

Defined in: [packages/combinatorics/src/factorial.ts:53](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/combinatorics/src/factorial.ts#L53)

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.

## Parameters

### n

`number`

## Returns

`number`

## Throws

With `INVALID_COUNT` for an invalid count.
