PHP Tutorial PHP Advanced PHP Resources
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

PHP - Math atanh() Function



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

atanh

Syntax

atanh(number)

Parameters

number Required. Specify the value.

Return Value

Returns the inverse hyperbolic tangent of a value.

Example:

In the example below, atanh() function is used to find out the inverse 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

5