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

  1. Permutations
  • arrangementCount Calculates the number of permutations.
  • arrangementSelect Selects permutations from a list.
  1. Combinations
  • combinationCount Calculates the number of combinations, i.e. C(n, m) = n!/((n-m)! * m!).
  • combinationSelect Selects combinations from a list.