public static int find_bands(int warp, int bands, int a0, int a1) {
    """
	/*
	This function finds the number of bands using this formula:
	bands * log(a1/a0)/log(2.0) + 0.5
    """
		float div = (float) Math.log(2.0);
		if(warp!=0) div *= 1.3f;

		return (int) (bands*Math.log((float) a1/(float) a0)/div+0.5);
	}
public static int find_bands(int warp, int bands, int a0, int a1) {
		float div = (float) Math.log(2.0);
		if(warp!=0) div *= 1.3f;

		return (int) (bands*Math.log((float) a1/(float) a0)/div+0.5);
	}
public static int find_bands ( int warp , int bands , int a0 , int a1 ) { float div = ( float ) Math . log ( 2.0 ) ; if ( warp != 0 ) div *= 1.3f ; return ( int ) ( bands * Math . log ( ( float ) a1 / ( float ) a0 ) / div + 0.5 ) ; }
/*
This function finds the number of bands using this formula:
bands * log(a1/a0)/log(2.0) + 0.5
/ * This function finds the number of bands using this formula : bands * log ( a1 / a0 ) / log ( 2 . 0 ) + 0 . 5