php8.5
Home/ Manual/ math / functions/ tanh

tanh

PHP function Edit on GitHub ✎

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

Hyperbolic 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

Source: reference/math/functions/tanh.xml · from the official PHP manual (php/doc-en)