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