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.

Contents

[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

#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

(C99)(C99)(C99)
computes the complex arc hyperbolic sine
(function)
(C99)(C99)(C99)
computes the complex arc hyperbolic tangent
(function)
(C99)(C99)(C99)
computes the complex hyperbolic cosine
(function)
(C99)(C99)(C99)
computes inverse hyperbolic cosine (arcosh(x))
(function)
C++ documentation for acosh