##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# cacoshf, cacosh, cacoshl

From cppreference.com
< c‎ | numeric‎ | complex

Defined in header `<complex.h>` |  |
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.

### [edit] Parameters

z | - | complex argument

### [edit] 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.

### [edit] Example

Run this code

    #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

### [edit] See also

casinh casinhf casinhl (C99)(C99)(C99) | computes the complex arc hyperbolic sine (function) [edit]
catanh catanhf catanhl (C99)(C99)(C99) | computes the complex arc hyperbolic tangent (function) [edit]
ccosh ccoshf ccoshl (C99)(C99)(C99) | computes the complex hyperbolic cosine (function) [edit]
acosh acoshf acoshl (C99)(C99)(C99) | computes inverse hyperbolic cosine (arcosh(x)) (function) [edit]
C++ documentation for acosh

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/complex/cacosh&oldid=70587"