package com.interview.utils; /** * Created_By: stefanie * Date: 15-1-19 * Time: 下午7:51 */ public class MathUtil { public static double log(int x, int base){ return (Math.log(x) / Math.log(base)); } }