gives the Stirling number of the second kind .
- Integer mathematical function, suitable for both symbolic and numerical manipulation.
- StirlingS2 is defined as the conversion matrix from Power of continuous calculus to FactorialPower of discrete calculus , where .
- gives the number of ways of partitioning a set of elements into non‐empty subsets.
- StirlingS2 automatically threads over lists.
Examplesopen allclose all
Basic Examples (1)
StirlingS2 threads element-wise over lists:
Plot Stirling numbers of the second kind on a logarithmic scale:
Closed form of derivatives of compositions with exponential functions:
A fair ‐sided die is thrown times independently. The probability that all faces appear at least once is given in terms of Stirling numbers of the second kind:
Plot the probability for a six-sided die:
Properties & Relations (6)
Generate values from the generating function:
Stirling numbers of the second kind are effectively inverses of Stirling numbers of the first kind:
Calculate large Stirling numbers of the second kind using Cauchy's theorem:
Generate Stirling numbers of the second kind from the commutation relation :
The limit of finite differences of powers are Stirling numbers of the second kind:
Stirling numbers of the second kind are given by a partial Bell polynomial with unit arguments:
Possible Issues (2)
StirlingS2 can take large values for moderate‐size arguments:
Wolfram Research (1988), StirlingS2, Wolfram Language function, https://reference.wolfram.com/language/ref/StirlingS2.html.
Wolfram Language. 1988. "StirlingS2." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StirlingS2.html.
Wolfram Language. (1988). StirlingS2. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StirlingS2.html