← All docs

tanh()

Returns the hyperbolic tangent of a number.

tanh()

function tanh(float $num): float

Returns the hyperbolic tangent of a number.

Parameters:

  • $num (float)

Returns: float

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how tanh is implemented in the compiler, see the internals page.