public static double log2(double arg){
  return Math.log(arg) / Math.log(2);
}

public static double log2 ( double arg ) { return Math . log ( arg ) / Math . log ( 2 ) ; }
returns the logarithm to base 2
