PHP tanh() Funzione
Esempio
Restituisce la tangente iperbolica di numeri diversi:
<?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));
?>
Definizione e utilizzo
La funzione tanh() restituisce la tangente iperbolica di un numero, che è uguale a sinh(x)/cosh(x).
Sintassi
tanh(number);
Valori dei parametri
Parameter | Description |
---|---|
number | Required. Specifies a number |
Dettagli tecnici
Valore di ritorno: | La tangente iperbolica del numero |
---|---|
Tipo di reso: | Galleggiante |
Versione PHP: | 4.1+ |
❮ Riferimento matematico PHP