Main Index : Reference :
[float] cosh([float,int] x)
x is a numeric value.
cosh() returns the hyperbolic cosine value of x. This is defined as (ex+e-x)/2. For more information on the hyperbolic cosine function, please refer to a math book.
// Outputs "cosh(x) = 3.762196".
var x = 2.0;
var a = cosh(x);
println("cosh(x) = ",a);