PHP tanh()

La fonction tanh() est une fonction intégrée en PHP qui renvoie la tangente hyperbolique d’un nombre, qui est égale à sinh(x) / cosh(x).
 

Syntaxe
tanh(nbr)

 
 

Paramètres
  • nbr(Obligatoire) : Spécifie un nombre.

 

Valeur de retour

La fonction renvoie la tangente hyperbolique d’un nombre.
 

Version PHP:

4.1+
 

Exemple :
<?php
echo(tanh(0.90)); // 0.71629787019902
echo(tanh(1));    // 0.76159415595576
echo(tanh(0));    // 0
echo(tanh(-1));   // -0.76159415595576
?>
Questions d'entretiens PHP

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *