1 #ifndef MATHUTILITIES_H 2 #define MATHUTILITIES_H 4 #include "../conversion/types.h" 17 #endif // MATHUTILITIES_H CPP_UTILITIES_EXPORT int64 inverseModulo(int64 number, int64 module)
Computes the inverse of number modulo module.
CPP_UTILITIES_EXPORT int factorial(int number)
Returns the factorial of the given number.
std::int64_t int64
signed 64-bit integer
CPP_UTILITIES_EXPORT uint64 orderModulo(uint64 number, uint64 module)
Computes the order of number modulo module.
Contains various mathematical functions.
std::uint64_t uint64
unsigned 64-bit integer
CPP_UTILITIES_EXPORT int random(int lowerbounds, int upperbounds)
Returns a pseudo random number between lowerbounds and upperbounds.
CPP_UTILITIES_EXPORT uint64 powerModulo(uint64 base, uint64 expontent, uint64 module)
Computes base power exponent modulo module.
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.
CPP_UTILITIES_EXPORT int digitsum(int number, int base=10)
Returns the digitsum of the given number using the specified base.