Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Mathematical Functions : asinh

asinh

Inverse hyperbolic sine (PHP 4 >= 4.0.7, PHP 5)
float asinh ( float arg )


Code Examples / Notes » asinh

arakrys

When using snoyes alternative bcasinh function, don't forget to check the precision of each single bcfunction or the default precision of ini setting bcmath.scale.

snoyes

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))));
}
}


Change Language


Follow Navioo On Twitter
abs
acos
acosh
asin
asinh
atan2
atan
atanh
base_convert
bindec
ceil
cos
cosh
decbin
dechex
decoct
deg2rad
exp
expm1
floor
fmod
getrandmax
hexdec
hypot
is_finite
is_infinite
is_nan
lcg_value
log10
log1p
log
max
min
mt_getrandmax
mt_rand
mt_srand
octdec
pi
pow
rad2deg
rand
round
sin
sinh
sqrt
srand
tan
tanh
eXTReMe Tracker