Fonction tanh()
Exemple
Retourne la tangente hyperbolique de plusieurs nombres :
<?php
echo(tanh(M_PI_4) . "<br>");
echo(tanh(0.50) . "<br>");
echo(tanh(-0.50) . "<br>");
echo(tanh(5) . "<br>");
echo(tanh(10) . "<br>");
echo(tanh(-5) . "<br>");
echo(tanh(-10));
?> Définition et Utilisation
La fonction tanh() retourne la tangente hyperbolique d'un nombre, qui est égale à sinh(x)/cosh(x).
Syntaxe
tanh( nombre ); Valeurs des Paramètres
| Paramètre | Description |
|---|---|
| nombre | Requis. Spécifie un nombre. |
Détails Techniques
| Valeur de Retour : | La tangente hyperbolique de nombre |
|---|---|
| Type de Retour : | Flottant |
| Version PHP : | 4.1+ |