Description Usage Arguments Details Value Warning Examples
Calculates the total number of enumerations,
given a superset of size 'n' and subsets of size 'k',
where enumeration means:
a) Permutation (isOrdered = TRUE)
b) Combination (isOrdered = FALSE)
1 | enumerations(n, k, isOrdered)
|
n |
Number of elements in the whole set |
k |
Number of elements in each subset |
isOrdered |
Does the ordering matter? |
n! / (n - k)!
n! / [(n - k)! * k!]
Total number of enumerations
The function does not assume a default value for isOrdered.
Therefore, all three arguments are required in order to calculate the result.
1 2 3 4 5 | ## Permutations with a 35 element set, and 3 elements per subset:
enumerations(35, 3, T)
## Combinations with a 255 element set, and 5 elements per subset:
enumerations(255, 5, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.