English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

atanh() function in PHP

Theatanh()The function returns the inverse hyperbolic tangent of the specified number.

Syntax

atanh(num)

parameter

  •  num-the specified number. It needs.

returns

Theatanh()The function returns a floating-point value which is the hyperbolic tangent of the number.

Example

<?php
   echo(atanh(1)) . "<br>";
   echo(atanh(-1));
?>

Output Result

INF<br>-INF

Example

Let's look at another example-

<?php
   echo(atanh(M_PI_4)) . "<br>";
   echo(atanh(0.90) . "<br>";
   echo(atanh(-0.90) . "<br>";
?>

Output Result

1.0593061708232<br>1.4722194895832<br>-1.4722194895832<br>

Example

Let's look at another example-

<?php
   echo(atanh(0));
?>

Output Result

0