public class logax { public static void log(int a, int x) { System.out.println("计算logax"); System.out.println("log"+a+" "+x+" = "+(Math.log(x)/Math.log(a))); } }