csinhf, csinh, csinhl

Header: <complex.h>

1-3) Computes the complex hyperbolic sine of z.

# Declarations

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)

#define sinh( z )

(since C99)

# Parameters

# Return value

If no errors occur, complex hyperbolic sine of z is returned

# Notes

Hyperbolic sine is an entire function in the complex plane and has no branch cuts. It is periodic with respect to the imaginary component, with period 2πi

# Example

#include <stdio.h>
#include <math.h>
#include <complex.h>
 
int main(void)
{
    double complex z = csinh(1);  // behaves like real sinh along the real line
    printf("sinh(1+0i) = %f%+fi (sinh(1)=%f)\n", creal(z), cimag(z), sinh(1));
 
    double complex z2 = csinh(I); // behaves like sine along the imaginary line
    printf("sinh(0+1i) = %f%+fi ( sin(1)=%f)\n", creal(z2), cimag(z2), sin(1));
}

# See also