Online Java Compiler By
JavaTpoint.com
public class Expm1Example4 { public static void main(String[] args) { double a = 1.0 / 0; // Input positive Infinity, Output positive Infinity System.out.println(Math.expm1(a)); } }
Output