Computes the binomial coefficient of the two arguments.

Namespace: TPSA
Assembly: TPSA (in TPSA.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static int binomial(
	int k,
	int l
)
Visual Basic
Public Shared Function binomial ( _
	k As Integer, _
	l As Integer _
) As Integer
Visual C++
public:
static int binomial(
	int k, 
	int l
)

Parameters

k
Type: System..::..Int32
First argument.
l
Type: System..::..Int32
The second argument.

Return Value

The binomial coefficient.

Remarks

The binomial coefficient is k!/(l! (k-l)!). This function will not necessarily overflow when k! or l! overflow.

See Also