Regina 7.3 Calculation Engine
|
Provides miscellaneous number theory routines. More...
Namespaces | |
namespace | regina |
Contains the entire Regina calculation engine. | |
Functions | |
long | regina::reducedMod (long k, long modBase) |
Reduces k modulo modBase to give the smallest possible absolute value. More... | |
long | regina::gcd (long a, long b) |
Deprecated routine that calculates the greatest common divisor of two signed integers. More... | |
std::tuple< long, long, long > | regina::gcdWithCoeffs (long a, long b) |
Calculates the greatest common divisor of two given integers and finds the smallest coefficients with which these integers combine to give their gcd. More... | |
long | regina::lcm (long a, long b) |
Deprecated routine that calculates the lowest common multiple of two signed integers. More... | |
unsigned long | regina::modularInverse (unsigned long n, unsigned long k) |
Calculates the multiplicative inverse of one integer modulo another. More... | |
Provides miscellaneous number theory routines.