class Matek{ private Matek(){} public static double abs(double x){ if(x>=0) return x; else return x * -1; } public static float abs(float x){ if(x>=0) return x; else return x * -1; } public static int abs(int x){ if(x>=0) return x; else return x * -1; } public static long abs(long x){ if(x>=0) return x; else return x * -1; } public static double ceil3(double x){ if((x - (long)x)>0){ return (double)(long)x+1; }else{ return (double)(long)x; } } public static long round(double x){ if(x>0) return (long) (x + 0.5); if(x<0) return (long) (x - 0.5); return 0; } public static double floor(double x){ if(x<0){ if((double)(long)x ==x){ return (long)x; }else{ return (long)x-1; } }else{ return (long)x; } } public static double pow(double a, double b){ if(b == 0){ return 1; } if(b==1){ return a; } double tmp=1; for(int i=0;i