Example
double complex v, w, z = -1.2 + 3.4 * I;
v = csinh( z );
w = 0.5 * ( cexp(z) − cexp(−z) );
printf( "The csinh() function returns %.2f %+.2f*I.\n",
creal(v), cimag(v) );
printf( "Using the cexp() function, the result is %.2f %+.2f*I.\n",
creal(w), cimag(w) );
This code produces the following output:
The csinh() function returns 1.46 -0.46*I.
Using the cexp() function, the result is 1.46 -0.46*I.
See Also
ccosh(), ctanh(), cacosh(),