UNPKG

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

13 lines (12 loc) 483 B
module.exports = { 'name': 'stirlingS2', 'category': 'Combinatorics', 'syntax': [ 'stirlingS2(n, k)' ], 'description': 'he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.', 'examples': [ 'stirlingS2(5, 3)' ], 'seealso': ['bellNumbers'] }