acosh(), acoshf(), acoshl() — Calculate hyperbolic arccosine
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
Format
#define _XOPEN_SOURCE_EXTENDED 1
#include <math.h>
double acosh(double x);
C99:
#define _ISOC99_SOURCE
#include <math.h>
float acoshf(float x);
long double acoshl(long double x);
C++ TR1 C99:
#define _TR1_C99
#include <math.h>
float acosh(float x);
long double acosh(long double x);
General description
The acosh functions
compute the (nonnegative) arc hyperbolic cosine of x.
A domain error occurs for arguments less than 1.
Note: The following
table shows the viable formats for these functions. See IEEE binary floating-point for more information about IEEE
Binary Floating-Point.
Function | Hex | IEEE |
---|---|---|
acosh | X | X |
acoshf | X | X |
acoshl | X | X |
Returned value
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.
Related information
- math.h
- acos(), acosf(), acosl() — Calculate arccosine
- asin(), asinf(), asinl() — Calculate arcsine
- asinh(), asinhf(), asinhl() — Calculate hyperbolic arcsine
- atan(), atanf(), atanl(), atan2(), atan2f(), atan2l() — Calculate arctangent
- atanh(), atanhf(), atanhl() — Calculate hyperbolic arctangent
- cos(), cosf(), cosl() — Calculate cosine
- cosh(), coshf(), coshl() — Calculate hyperbolic cosine
- sin(), sinf(), sinl() — Calculate sine
- sinh(), sinhf(), sinhl() — Calculate hyperbolic sine
- tan(), tanf(), tanl() — Calculate tangent
- tanh(), tanhf(), tanhl() — Calculate hyperbolic tangent