mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
40 lines (24 loc) • 777 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S.
bellNumbers only takes integer arguments.
The following condition must be enforced: n >= 0
```js
math.bellNumbers(n)
```
Parameter | Type | Description
--------- | ---- | -----------
`n` | Number &
Type | Description
---- | -----------
Number &
```js
math.bellNumbers(3); // returns 5;
math.bellNumbers(8); // returns 4140;
```
[](stirlingS2.md)