Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <math.h>
double acosh(double x);
#define _ISOC99_SOURCE
#include <math.h>
float acoshf(float x);
long double acoshl(long double x);
#define _TR1_C99
#include <math.h>
float acosh(float x);
long double acosh(long double x);
Function | Hex | IEEE |
---|---|---|
acosh | X | X |
acoshf | X | X |
acoshl | X | X |
If successful, acosh() returns the hyperbolic arccosine of its argument x.
If the value of x is less than 1.0, then the function returns 0.0 and sets errno to EDOM.
Special behavior for IEEE: If successful, the function returns the hyperbolic arccosine of its argument x.
If x is less than 1.0, the function sets errno to EDOM and returns NaNQ.