Main Index : Reference :

cosh()


Description

Calculates the hyperbolic cosine value (abbreviated cosh) of a variable.

Definition

[float] cosh([float,int] x)

Parameters

x is a numeric value.

Return 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.

Example

// Outputs "cosh(x) = 3.762196".

var x = 2.0;
var a = cosh(x);

println("cosh(x) = ",a);

See Also

cos(), sinh(), tanh()