Table of Contents

csinh

double complex csinh(double complex z);

description of csinh

calculate the complex hyperbolic sine

#include <stdio.h>
#include <complex.h>
 
int main( void )
{
 
   long double complex zlong=4.2 + I*2.34;
   double complex zdouble=(double complex)zlong;
 
   double result;
 
   result = csinh(zdouble);
   printf("csinh(%f + I*%f) = %f\n", creal(zdouble), cimag(zdouble), result);
   return 0;
}

output of csinh c example

  csinh(4.200000 + I*2.340000) = -23.187068