Online Java Compiler By
JavaTpoint.com
public class Log1pExample2 { public static void main(String[] args) { double x = -1.65; // Input less than -1, Output NaN System.out.println(Math.log1p(x)); } }
Output