Namespaces
Variants
Views
Actions

cacoshf, cacosh, cacoshl

From cppreference.com
< c‎ | numeric‎ | complex
Revision as of 09:01, 11 February 2014 by Newatthis (Talk | contribs)

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

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()
{
    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

See also

(C99)(C99)(C99)
computes the complex arc hyperbolic sine
(function) [edit]
(C99)(C99)(C99)
computes the complex arc hyperbolic tangent
(function) [edit]