2015-04-22 18:36:40 +02:00
|
|
|
#ifndef MATHUTILITIES_H
|
|
|
|
#define MATHUTILITIES_H
|
|
|
|
|
2016-08-29 15:35:48 +02:00
|
|
|
#include "../global.h"
|
2016-01-27 00:15:01 +01:00
|
|
|
#include "../conversion/types.h"
|
2015-04-22 18:36:40 +02:00
|
|
|
|
2015-09-06 15:30:16 +02:00
|
|
|
namespace MathUtilities {
|
2015-04-22 18:36:40 +02:00
|
|
|
|
2016-08-29 15:35:48 +02:00
|
|
|
CPP_UTILITIES_EXPORT int random(int lowerbounds, int upperbounds);
|
|
|
|
CPP_UTILITIES_EXPORT int digitsum(int number, int base = 10);
|
|
|
|
CPP_UTILITIES_EXPORT int factorial(int number);
|
|
|
|
CPP_UTILITIES_EXPORT uint64 powerModulo(uint64 base, uint64 expontent, uint64 module);
|
|
|
|
CPP_UTILITIES_EXPORT int64 inverseModulo(int64 number, int64 module);
|
|
|
|
CPP_UTILITIES_EXPORT uint64 orderModulo(uint64 number, uint64 module);
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // MATHUTILITIES_H
|