Click or drag to resize
AdvancedIntegerMathStirlingNumber2 Method
Computes a Stirling number of the second kind.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public static double StirlingNumber2(
	int n,
	int k
)

Parameters

n
Type: SystemInt32
The upper argument, which must be non-negative.
k
Type: SystemInt32
The lower argument, which must lie between 0 and n.

Return Value

Type: Double
The value of the Stirling number of the second kind.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative, or k lies outside [0, n].
See Also