asinh for windows:
The definition for asinh is asinh(z) = log(z + sqrt(z^2 + 1))
The built-in math functions and operators give poor results for small values of z. The BCMath version produces closer results, but still quite distant if z < 1. A BCMath version of the log function might help.
if (!function_exists("asinh")) {
function asinh($z) {
return log($z + sqrt($z^2 +1));
}
}
if (!function_exists("bcasinh")) {
function bcasinh($z) {
return log(bcadd($z, bcsqrt(bcadd(bcpow($z, 2), 1))));
}
}
asinh
(PHP 4 >= 4.0.7, PHP 5)
asinh — 逆双曲線正弦(アークハイパボリックサイン)
説明
float asinh ( float $arg )arg のアークハイパボリックサインを返します。 つまり、ハイパボリックサインが arg となる値です。
注意: この関数は Windows 環境にはまだ実装されていません。
パラメータ
- arg
処理する角度。
返り値
arg のアークハイパボリックサインを返します。
参考
| sinh() |
| asin() |
| acosh() |
| atanh() |
asinh
snoyes at gmail dot com
28-Dec-2005 12:42
28-Dec-2005 12:42