#if !defined(MYMATH) #define MYMATH #include "MyMath.h" #endif // -------------------------------------------------- // --------------- sqr ----------------- double sqr(double x) { return x*x; } // -------------------------------------------------- // --------------- sqr ----------------- double modulo(double x,double k) { while((x>k) || (x<0.0)) { if(x>=k) x-=k; else x+=k; } return x; }