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