simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

bellNumbers.md (825B)


      1 <!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
      2 
      3 # Function bellNumbers
      4 
      5 The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S.
      6 bellNumbers only takes integer arguments.
      7 The following condition must be enforced: n >= 0
      8 
      9 
     10 ## Syntax
     11 
     12 ```js
     13 math.bellNumbers(n)
     14 ```
     15 
     16 ### Parameters
     17 
     18 Parameter | Type | Description
     19 --------- | ---- | -----------
     20 `n` | Number &#124; BigNumber | Total number of objects in the set
     21 
     22 ### Returns
     23 
     24 Type | Description
     25 ---- | -----------
     26 Number &#124; BigNumber | B(n)
     27 
     28 
     29 ### Throws
     30 
     31 Type | Description
     32 ---- | -----------
     33 
     34 
     35 ## Examples
     36 
     37 ```js
     38 math.bellNumbers(3) // returns 5
     39 math.bellNumbers(8) // returns 4140
     40 ```
     41 
     42 
     43 ## See also
     44 
     45 [stirlingS2](stirlingS2.md)