Home >>PHP Math Functions >PHP atanh() Function
PHP atanh() function is used to find the inverse hyperbolic tangent of the given input number passed to it as an argument. It accepts only a single parameter $number which is the number whose inverse hyperbolic tangent value is to be found. The value of this input parameter should be in radians. It returns a floating point number as output which is the inverse hyperbolic tangent value of the input number passed to it as argument.
Syntax:
atanh($number);
Parameter | Description |
---|---|
number | This is a required parameter. This parameter defines the given input number. |
Here is an example of atanh() function in PHP:
<html> <body> <?php echo atanh(M_2_PI)."<br>"; echo atanh(0.79)."<br>"; echo atanh(-0.79)."<br>"; ?> </body> </html>
Here is an another example of atanh() function in PHP:
<html> <body> <?php echo atanh(0)."<br>"; echo atanh(1)."<br>"; echo atanh(-1)."<br>"; echo atanh(0.524)."<br>"; echo atanh(0.785)."<br>"; echo atanh(6.283)."<br>"; ?> </body> </html>