Here you can find the source of cosh(double x)
public static double cosh(double x)
//package com.java2s; public class Main { public static double cosh(double x) { return 0.5 * (Math.exp(x) + Math.exp(-x)); }//from w ww .j a va2s.com }