C++ Utilities
4.9.2
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
|
Contains various mathematical functions. More...
Functions | |
CPP_UTILITIES_EXPORT int | random (int lowerbounds, int upperbounds) |
Returns a pseudo random number between lowerbounds and upperbounds. More... | |
CPP_UTILITIES_EXPORT int | digitsum (int number, int base) |
Returns the digitsum of the given number using the specified base. More... | |
CPP_UTILITIES_EXPORT int | factorial (int number) |
Returns the factorial of the given number. More... | |
CPP_UTILITIES_EXPORT uint64 | powerModulo (const uint64 base, const uint64 exponent, const uint64 module) |
Computes base power exponent modulo module. More... | |
CPP_UTILITIES_EXPORT int64 | inverseModulo (int64 number, int64 module) |
Computes the inverse of number modulo module. More... | |
CPP_UTILITIES_EXPORT uint64 | orderModulo (const uint64 number, const uint64 module) |
Computes the order of number modulo module. More... | |
Contains various mathematical functions.
int MathUtilities::digitsum | ( | int | number, |
int | base = 10 |
||
) |
int MathUtilities::factorial | ( | int | number | ) |