函数 bellNumbers #

Bell 数计算一个集合的划分数量。划分是 S 的成对不相交的子集,它们的并集是 S。bellNumbers 只接受整数参数。必须强制执行以下条件:n >= 0

Syntax #

math.bellNumbers(n)

Parameters #

Parameter Type Description
n 数字 | 大数 集合中对象的总数

Returns #

Type Description
数字 | 大数 B(n)

Throws #

Type | Description —- | ———–

Examples #

math.bellNumbers(3) // returns 5
math.bellNumbers(8) // returns 4140

另请参阅 #

stirlingS2

Fork me on GitHub