いろいろな数値の双曲線 tan を返します
<?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));
?>
例の実行 »
tanh()関数は、sinh(x)/cosh(x) に等しい数値の双曲線 tan を返します。
tanh(number);
パラメータ | 説明 |
---|---|
number | 必須。数値を指定する |
返り値: | numberの双曲線 tan |
---|---|
返り値の型: | Float |
PHP バージョン: | 4.1+ |