Online Java Compiler By
JavaTpoint.com
public class Log1pExample1 { public static void main(String[] args) { double x = 26; // Input positive value, Output natural logarithm of x System.out.println(Math.log1p(x)); } }
Output