|
amath
1.8.5
Simple command line calculator
|
Inverse hyperbolic sine function. More...
#include "prim.h"
Go to the source code of this file.
Functions | |
| double | asinh (double x) |
| Inverse hyperbolic sine function. More... | |
Variables | |
| static const double | one = 1.00000000000000000000e+00 |
| static const double | ln2 = 6.93147180559945286227e-01 |
| static const double | huge = 1.00000000000000000000e+300 |
Inverse hyperbolic sine function.
Definition in file asinh.c.
| double asinh | ( | double | x | ) |
Inverse hyperbolic sine function.
Method
Based on
asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ] we have
asinh(x) = x if 1+x*x=1,
= sign(x)*(log(x)+ln2)) for large |x|, else
= sign(x)*log(2|x|+1/(|x|+sqrt(x*x+1))) if|x|>2, else
= sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2)))
Definition at line 68 of file asinh.c.
References fabs(), huge, ln2, log(), log1p(), one, and sqrt().
Referenced by RealNumber::HypArcSine().


|
static |
|
static |