Atom

math.tanh()

Computes hyperbolic tangent.

Signature

math.tanh(x)

Parameters

One number.

Returns

f64.

Behavior

Uses the C math operation.

Errors

Requires a number.

Example

Atom
use math
assert(math.tanh(0) == 0)