ACOSH(3) Library Functions Manual ACOSH(3)

acoshinverse hyperbolic cosine function

#include <math.h>

double
acosh(double x);

long double
acoshl(long double x);

float
acoshf(float x);

The () function computes the principle value of the inverse hyperbolic cosine of x. The result is in the range [0, +infinity].

acosh(1) returns +0.

(x) returns a NAN and raises the "invalid" floating-point exception for x < 1.

(+infinity) returns +infinity.

If you need to apply the acosh() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may give significantly better performance:

#include <Accelerate/Accelerate.h>

vFloat (vFloat x);
void (float *y, const float *x, const int *n);
void (double *y, const double *x, const int *n);

asinh(3), atanh(3), exp(3), math(3)

The acosh() function conforms to ISO/IEC 9899:2011.

The acosh() and acoshf() function appeared in 4.3BSD.

December 11, 2006 BSD 4.3