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
arrangementCountCalculates the number of permutations.arrangementSelectSelects permutations from a list.
- Combinations
combinationCountCalculates the number of combinations, i.e. C(n, m) = n!/((n-m)! * m!).combinationSelectSelects combinations from a list.