cacosh(), cacoshf(), cacoshl()

Compute the complex inverse hyperbolic cosine

Synopsis:

#include <complex.h>

double complex cacosh( double complex z );

float complex cacoshf( float complex z );

long double complex cacoshl( long double complex z );

Arguments:

z
The value that you want to get the complex inverse hyperbolic cosine of.

Library:

libm

Use the -l m option to qcc to link against this library.

Description:

These functions compute the complex inverse hyperbolic cosine of z, with a branch cut at values less than 1 along the real axis.

To check for error situations, use feclearexcept() and fetestexcept():

Returns:

The complex inverse hyperbolic cosine of z in the interval [0; ) along the real axis and in the interval [−iπ; +iπ] along the imaginary axis.

If z is: These functions return:
±0+0i +0+iπ/2
+x+i (for any finite x) ++iπ/2
0+NaNi NaN+iπ/2
+x+NaNi (for any nonzero finite x) NaN+NaNi and FE_INVALID may be raised.
-+yi (for any positive finite y) ++iπ
++yi (for any positive finite y) ++0i
-+i ++3iπ/4
±+NaNi ++NaNi
NaN+yi (for any finite y) NaN+NaNi and FE_INVALID may be raised.
NaN+i ++NaNi
NaN+NaNi NaN+NaNi

Classification:

ANSI, POSIX 1003.1

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes