Java tutorial
public class Main { public static void main(String[] args) { double d1 = 90, d2 = 0.0, d3 = (1.0 / 0.0); System.out.println("Logarithm value of double (d1 + 1) with base 10 :" + StrictMath.log1p(d1)); System.out.println("Logarithm value of double (d2 + 1) with base 10 :" + StrictMath.log1p(d2)); System.out.println("Logarithm value of double (d3 + 1) with base 10 :" + StrictMath.log1p(d3)); } }