Bell: Compute the Bell numbers

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/Stirling2.R

Description

This function computes the Bell numbers, which is the summ of Stirling numbers of the second kind, S(n, k), over k, i.e.

B_n = ∑_{k=1}^{n}S(n, k),n ≥ 1

Usage

1
Bell(n)

Arguments

n

A vector of one or more non-zero positive integers

Value

An vector of Bell numbers

Author(s)

James Curran

References

https://en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind#Recurrence_relation

See Also

Stirling2

Examples

1
2
3
4
5
## returns B(6)
Bell(6)

## returns B(1), B(2), ..., B(6)
B(1:6)

multicool documentation built on June 29, 2021, 9:08 a.m.