PHP Tutorial - PHP atanh() Function






Definition

The atanh() function returns the inverse hyperbolic tangent of a number.

Syntax

PHP atanh() Function has the following syntax.

atanh(number);

Parameter

Parameter Is Required Description
number Required. A number

Return

Item Description
Return Value The hyperbolic tangent of number
Return Type Float




Example

Return the inverse hyperbolic tangent of different numbers:


<?php
echo(atanh(M_PI_4) . "\n");
echo(atanh(0.50) . "\n");
echo(atanh(-0.50) . "\n");
echo(atanh(-1));
?>

The code above generates the following result.