casinhf, casinh, casinhl

From cppreference.com
< c‎ | numeric‎ | complex
Defined in header <complex.h>
float complex       casinhf( float complex z );
(since C99)
double complex      casinh( double complex z );
(since C99)
long double complex casinhl( long double complex z );
(since C99)

Computes the complex arc hyperbolic sine of z with branch cuts outside the interval [−i; +i] along the imaginary axis.

Contents

[edit] Parameters

z - complex argument

[edit] Return value

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

[edit] Example

#include <stdio.h>
#include <complex.h>
 
int main(void)
{
    double complex z;
 
    z = csinh(1.0+2.0*I);
    printf("csinh(1.0+2.0*I)             ==> %f%+fi\n", creal(z),cimag(z));
 
    z = casinh(-0.489056+1.403119*I);
    printf("casinh(-0.489056+1.403119*I) ==> %f%+fi\n", creal(z),cimag(z));
 
    return 0;
}

Output:

csinh(1.0+2.0*I)              ==> -0.489056+1.403119i
casinh(-0.489056+1.403119i*I) ==> -1.000000+1.141593i

[edit] See also

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