Java tutorial
public class Main { public static void main(String[] args) { double x = 45.0; double y = 180.0; // convert them to radians x = Math.toRadians(x); y = Math.toRadians(y); // output their hyperbolic cosine System.out.println("Math.cosh(" + x + ")=" + Math.cosh(x)); System.out.println("Math.cosh(" + y + ")=" + Math.cosh(y)); } }