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

Fonction atanh() dans PHP

Leatanh()La fonction retourne la tangente hyperbolique inverse du nombre spécifié.

Syntaxe

atanh(num)

paramètre

  •  num-le nombre spécifié. Besoin de.

retourne

Leatanh()La fonction retourne une valeur flottante qui est la tangente hyperbolique d'un nombre.

Exemple

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

Résultat de la sortie

INF<br>-INF

Exemple

Voyons un autre exemple-

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

Résultat de la sortie

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

Exemple

Voyons un autre exemple-

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

Résultat de la sortie

0