math/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
ext.math | |
Functions | |
nCr | Finds the number of combinations of a sub-set of elements of a set. |
Copyright © 2007-2011, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com
declare function nCr ( byval n as ulongint, byval r as ulongint ) as ulongint
Finds the number of combinations of a sub-set of elements of a set.
n | the total number of elements in the set. |
r | the number of elements in the sub-set. |
The number of combinations of size //r// possible from a set of size //n//.
Finds the number of combinations of a sub-set of elements of a set.
declare function nCr ( byval n as ulongint, byval r as ulongint ) as ulongint