Atom

math.cosh()

Computes hyperbolic cosine.

Signature

math.cosh(x)

Parameters

One number.

Returns

f64.

Behavior

May overflow to infinity.

Errors

Requires a number.

Example

Atom
use math
assert(math.cosh(0) == 1)