PHP tanh() 関数
例
異なる数の双曲線正接を返します。
<?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) に等しくなります。
構文
tanh(number);
パラメータ値
|
パラメータ |
説明 |
|---|---|
| 番号 | 必要。番号を指定します |
技術的な詳細
|
戻り値: |
の双曲線正接番号 |
|---|---|
|
返品の種類: |
浮く |
|
PHP バージョン: |
4.1+ |