amath
1.6.2
Simple command line calculator
|
Go to the source code of this file.
Functions | |
double | acosh (double x) |
Inverse hyperbolic cosine function. More... | |
Variables | |
static const double | one = 1.0 |
static const double | ln2 = 6.93147180559945286227e-01 |
double acosh | ( | double | x | ) |
Inverse hyperbolic cosine function.
Method : Based on acosh(x) = log [ x + sqrt(x*x-1) ] we have acosh(x) := log(x)+ln2, if x is large; else acosh(x) := log(2x-1/(sqrt(x*x-1)+x)) if x>2; else acosh(x) := log1p(t+sqrt(2.0*t+t*t)); where t=x-1.
Special cases: acosh(x) is NaN with signal if x<1. acosh(NaN) is NaN without signal.
Definition at line 75 of file acosh.c.
References ln2, log1p(), one, and sqrt().
Referenced by RealNumber::HypArcCosine(), and RealNumber::HypArcSecant().
|
static |