Funkce PHP tanh().
Příklad
Vraťte hyperbolický tangens různých čísel:
<?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));
?>
Definice a použití
Funkce tanh() vrací hyperbolický tangens čísla, který se rovná sinh(x)/cosh(x).
Syntax
tanh(number);
Hodnoty parametrů
Parameter | Description |
---|---|
number | Required. Specifies a number |
Technické údaje
Návratová hodnota: | Hyperbolický tangens čísla |
---|---|
Typ vrácení: | Plovák |
Verze PHP: | 4.1+ |
❮ PHP Math Reference