php / 8.1.5 / function.tanh.html /

tanh

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

tanhHyperbolic tangent

Description

tanh(float $num): float

Returns the hyperbolic tangent of num, defined as sinh(num)/cosh(num).

Parameters

num

The argument to process

Return Values

The hyperbolic tangent of num

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.tanh.php