/math

Math library written in C++

Primary LanguageCMIT LicenseMIT

math

Math library written in C++.

It implements mathematical constructs, such as

  • Greatest Common Divisor
  • Least Common Multiple
  • Logarithms (log 10, log 2, ln)
  • Modulus
  • Exponentiation
  • Euler's totient/phi function
  • Sieve of Eratosthenes
  • Carmichael number test
  • Pollard Rho
  • Pollard P-1
  • B-Smoothness test
  • Square-free test