|
amath
1.8.5
Simple command line calculator
|
Inverse hyperbolic cosine function. More...
#include "prim.h"
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 |
Inverse hyperbolic cosine function.
Definition in file acosh.c.
| double acosh | ( | double | x | ) |
Inverse hyperbolic cosine function.
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-1Special cases
acosh(x) is NaN if x<1
acosh(NaN) is NaN
Definition at line 69 of file acosh.c.
References ln2, log(), log1p(), one, and sqrt().
Referenced by RealNumber::HypArcCosine().


|
static |