← All docs

cosh()

Returns the hyperbolic cosine of a number.

cosh()

function cosh(float $num): float

Returns the hyperbolic cosine of a number.

Parameters:

  • $num (float)

Returns: float

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

Internals

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