Facebook Page Twitter Page LinkedIn Page
× PHP Tutorial PHP Advanced PHP Resources


The PHP Math atanh() function returns inverse hyperbolic tangent of a value. The hyperbolic tangent of x is defined as:

atanh

Syntax

atanh(number)

Parameters

number Required. Specify the value.

Return Value

Returns the hyperbolic tangent of a value.

Example:

In the below example, atanh() function is used to find out the hyperbolic tangent of a value.

<?php
echo atanh(0.1)."\n";
echo atanh(0.5)."\n";
echo atanh(2)."\n";
?>

The output of the above code will be:

0.10033534773108
0.54930614433405
NAN

❮ PHP Math Functions