Bell | R Documentation |
This function computes the Bell numbers, which is the summ of Stirling
numbers of the second kind, S(n, k)
, over k = 1,\ldots,
n
, i.e.
B_n = \sum_{k=1}^{n}S(n, k),n \ge 1
Bell(n)
B(n)
n |
A vector of one or more non-zero positive integers |
An vector of Bell numbers
B()
: Compute the Bell numbers
James Curran
https://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind#Recurrence_relation
Stirling2
## returns B(6)
Bell(6)
## returns B(1), B(2), ..., B(6)
B(1:6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.