Version

NChooseK Method

Returns n choose k.
Syntax
'Declaration
 
Public Shared Function NChooseK( _
   ByVal n As Double, _
   ByVal k As Double _
) As Double
public static double NChooseK( 
   double n,
   double k
)

Parameters

n
The first double.
k
The second double.

Return Value

n choose k.
Remarks
If either n or k is not a natural number, or if k is greater than n, NaN is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also