Function
| Static Public Summary | ||
| public |
this function is experimental. Uses doubles, will return incorrect values for large input.
Returns the factorial of the input number _n!_ = |
|
Static Public
public factorial(n: number): number source
import factorial from '@combinatorics/factorial/src/factorial.js'this function is experimental. Uses doubles, will return incorrect values for large input.
Returns the factorial of the input number _n!_ = 1 2 ... * n.
Params:
| Name | Type | Attribute | Description |
| n | number | The input number. |
