Function cosh #

Calculate the hyperbolic cosine of a value, defined as cosh(x) = 1/2 * (exp(x) + exp(-x)).

To avoid confusion with the matrix hyperbolic cosine, this function does not apply to matrices.

Syntax #

math.cosh(x)

Parameters #

Parameter Type Description
x number | BigNumber | Complex Function input

Returns #

Type Description
number | BigNumber | Complex Hyperbolic cosine of x

Throws #

Type | Description —- | ———–

Examples #

math.cosh(0.5)       // returns number 1.1276259652063807

See also #

sinh, tanh

Fork me on GitHub