fonction tanh () de PHP
Exemples
Renvoie le nombre de différentes tangente hyperbolique:
<?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));
?>
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));
?>
Exécution instance »
Définition et utilisation
fonction tanh () renvoie la tangente hyperbolique d'un nombre défini comme sinh (x) / cosh (x).
grammaire
tanh( number );
参数 | 描述 |
---|---|
number | 必需。规定一个数。 |
détails techniques
Retours: | nombre tangente hyperbolique. |
---|---|
Type de retour: | flotteur |
PHP version: | 4.1+ |
PHP Math Reference