ctanh(), ctanhf(), ctanhl()

Compute the complex hyperbolic tangent

Synopsis:

#include <complex.h>

double complex ctanh( double complex z );

float complex ctanhf( float complex z );

long double complex ctanhl( long double complex z );

Arguments:

z
The value that you want to get the complex hyperbolic tangent of.

Library:

libm

Use the -l m option to qcc to link against this library.

Description:

These functions compute the complex hyperbolic tangent of the number specified by z.

To check for error situations, use feclearexcept() and fetestexcept():

Returns:

The complex hyperbolic tangent of z.

If z is: These functions return:
+0+0i +0+0i
0+i 0+NaNi
x +i (for any nonzero, finite x) NaN+NaNi and FE_INVALID is raised
0+NaNi 0+NaNi
x +NaN (for any nonzero finite x) NaN+NaNi and FE_INVALID may be raised
++yi (for any finite positive y) 1+0i
++i 1±0i (the sign of the imaginary part is unspecified)
++NaNi 1±0i (the sign of the imaginary part is unspecified)
NaN+0i NaN+0i
NaN+yi (for any nonzero y) NaN+NaNi and FE_INVALID may be raised
NaN+NaNi NaN+NaNi

Classification:

ANSI, POSIX 1003.1

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes