PHP tanh() 関数

❮ PHP Math リファレンス

いろいろな数値の双曲線 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+

❮ PHP Math リファレンス