C++ Utilities  4.9.0
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
Namespaces | Functions
math.h File Reference
#include "../conversion/types.h"
#include "../global.h"
Include dependency graph for math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 MathUtilities
 Contains various mathematical functions.
 

Functions

CPP_UTILITIES_EXPORT int MathUtilities::random (int lowerbounds, int upperbounds)
 Returns a pseudo random number between lowerbounds and upperbounds. More...
 
CPP_UTILITIES_EXPORT int MathUtilities::digitsum (int number, int base=10)
 Returns the digitsum of the given number using the specified base. More...
 
CPP_UTILITIES_EXPORT int MathUtilities::factorial (int number)
 Returns the factorial of the given number. More...
 
CPP_UTILITIES_EXPORT uint64 MathUtilities::powerModulo (uint64 base, uint64 expontent, uint64 module)
 Computes base power exponent modulo module. More...
 
CPP_UTILITIES_EXPORT int64 MathUtilities::inverseModulo (int64 number, int64 module)
 Computes the inverse of number modulo module. More...
 
CPP_UTILITIES_EXPORT uint64 MathUtilities::orderModulo (uint64 number, uint64 module)
 Computes the order of number modulo module. More...