Java tutorial
public class Main { public static void main(String[] args) { double x = 123456.7; double y = -123.45; // get the natural logarithm for x System.out.println("Math.log(" + x + ")=" + Math.log(x)); // get the natural logarithm for y System.out.println("Math.log(" + y + ")=" + Math.log(y)); } }