mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
50 lines (30 loc) • 906 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Compute the factorial of a value
Factorial only supports an integer value as argument.
For matrices, the function is evaluated element wise.
```js
math.factorial(n)
```
Parameter | Type | Description
--------- | ---- | -----------
`n` | number &
Type | Description
---- | -----------
number &
Type | Description
---- | -----------
```js
math.factorial(5) // returns 120
math.factorial(3) // returns 6
```
[](combinations.md),
[](combinationsWithRep.md),
[](gamma.md),
[](permutations.md)