/NumberTheory

Number Theory Swift Package.

Primary LanguageSwiftMIT LicenseMIT

Number Theory

Analyze integers, subsets of the integers, and realted.

  • Big Integer
  • Modular Arithmetic
  • Other
    • Ceil
    • Floor
    • Round
    • Least Common Multiple (lcm)
    • Greatest Common Divisor (GCD)
    • sign (signum) (1: +, 0: 0, -1: -)
    • purmutations (nPr) -> n! / (n - r)!
    • combination (nCr) -> n! / [r! (n - r)!]
  • nth root (n√)