# cacoshf, cacosh, cacoshl

< c‎ | numeric‎ | complex

C
 Language headers Type support Dynamic memory management Error handling Program utilities Variadic function support Date and time utilities Strings library Algorithms Numerics Input/output support Localization support Thread support (C11) Atomic operations (C11) Technical Specifications

Complex number arithmetic
Types and the imaginary constant
Manipulation
Power and exponential functions
Trigonometric functions
Hyperbolic functions
 cacosh casinh catanh

 Defined in header float complex       cacoshf( float complex z ); (since C99) double complex      cacosh( double complex z ); (since C99) long double complex cacoshl( long double complex z ); (since C99)

Computes the complex arc hyperbolic cosine of z with branch cuts outside the values less than 1 along the real axis.

## Contents

### Parameters

 z - complex argument

### Return value

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

### Example

#include <stdio.h>
#include <complex.h>

int main(void)
{
double complex z;

z = ccosh(1.0+2.0*I);
printf("ccosh(1.0+2.0*I)             ==> %f%+fi\n", creal(z),cimag(z));

z = cacosh(-0.642148+1.068607*I);
printf("cacosh(-0.642148+1.068607*I) ==> %f%+fi\n", creal(z),cimag(z));

return 0;
}

Output:

ccosh(1.0+2.0*I)             ==> -0.642148+1.068607i
cacosh(-0.642148+1.068607*I) ==> 1.000000+2.000000i