MathUtil
MathUtil - Supplementary Math Tools
Introduction
MathUtil is a complement to NumberUtil, where NumberUtil倾向于 encapsulating simple mathematical calculations, while MathUtil leans towards complex mathematical calculations.
Methods
- Permutations
arrangementCount
Calculates the number of permutations.arrangementSelect
Selects permutations from a list.
- Combinations
combinationCount
Calculates the number of combinations, i.e. C(n, m) = n!/((n-m)! * m!).combinationSelect
Selects combinations from a list.