Namespaces
Variants
Views
Actions

csinhf, csinh, csinhl

From cppreference.com
< c‎ | numeric‎ | complex
Revision as of 12:53, 25 May 2014 by Diego91b (Talk | contribs)

Defined in header <complex.h>
float complex       csinhf( float complex z );
(since C99)
double complex      csinh( double complex z );
(since C99)
long double complex csinhl( long double complex z );
(since C99)

Computes the complex hyperbolic sine of z.

Contents

Parameters

z - complex argument

Return value

The complex hyperbolic sine of z.

Example

#include <stdio.h>
#include <complex.h>
#include <math.h>
 
#define PI acos(-1)
 
int main(void)
{
    double complex z;
 
    /* Hyperbolic functions are periodic with respect to the imaginary component. */
    /* The period of sinh is 2*pi*i.                                              */
    z = csinh(0.0+0.0*PI*I);
    printf("csinh(0.0+0*PI*I) ==> %f%+fi\n", creal(z),cimag(z));
 
    z = csinh(0.0 + 2*PI*I);
    printf("csinh(0.0+2*PI*I) ==> %f%+fi\n", creal(z),cimag(z));
 
    z = csinh(0.0 + 4*PI*I);
    printf("csinh(0.0+4*PI*I) ==> %f%+fi\n", creal(z),cimag(z));
 
    return 0;
}

Output:

csinh(0.0+0*PI*I) ==> 0.000000+0.000000i
csinh(0.0+2*PI*I) ==> 0.000000-0.000000i
csinh(0.0+4*PI*I) ==> 0.000000-0.000000i

See also

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