Probability (prob.py)
The Probability module in NumLex includes functions for calculating permutations and combinations.
Functions
-
perm(n, r)
: Calculates the number of permutations.perms = perm(n=5, r=3) -
comb(n, r)
: Calculates the number of combinations.combs = comb(n=5, r=3)