cpp-utilities/math/math.h

19 lines
520 B
C
Raw Normal View History

2015-04-22 18:36:40 +02:00
#ifndef MATHUTILITIES_H
#define MATHUTILITIES_H
2015-09-06 20:19:09 +02:00
#include "../application/global.h"
#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
LIB_EXPORT int random(int lowerbounds, int upperbounds);
LIB_EXPORT int digitsum(int number, int base = 10);
LIB_EXPORT int factorial(int number);
LIB_EXPORT uint64 powerModulo(uint64 base, uint64 expontent, uint64 module);
LIB_EXPORT int64 inverseModulo(int64 number, int64 module);
LIB_EXPORT uint64 orderModulo(uint64 number, uint64 module);
2015-04-22 18:36:40 +02:00
}
#endif // MATHUTILITIES_H