math/ npr.bi

Summary
math/ npr.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext.math
Functions
nPrFinds the number of permutations of a sub-set of elements of a set.

License

Copyright © 2009, 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- /p- /fb-extended-lib- /wiki- /License

ext.math

Summary
Functions
nPrFinds the number of permutations of a sub-set of elements of a set.

Functions

nPr

declare function nPr (byval n as ulongint,
byval r as ulongint) as ulongint

Finds the number of permutations of a sub-set of elements of a set.

Parameters

nthe total number of elements in the set.
rthe number of elements in the sub-set.

Returns

The number of permutations of size //r// possible from a set of size //n//.

declare function nPr (byval n as ulongint,
byval r as ulongint) as ulongint
Finds the number of permutations of a sub-set of elements of a set.