United States-English |
|
|
HP-UX Reference > Cctanh(3M)HP Integrity Server OnlyHP-UX 11i Version 3: February 2007 |
|
NAMEctanh(), ctanhf(), ctanhl(), ctanhw(), ctanhq() — complex hyperbolic tangent functions SYNOPSIS#include <complex.h> double complex ctanh(double complex z); float complex ctanhf(float complex z); long double complex ctanhl(long double complex z); extended complex ctanhw(extended complex z); quad complex ctanhq(quad complex z); DESCRIPTIONThese functions are available only for Integrity servers. ctanh() returns the complex hyperbolic tangent of z. ctanhf() is a float complex version of ctanh(); it takes a float complex argument and returns a float complex result. ctanhl() is a long double complex version of ctanh(); it takes a long double complex argument and returns a long double complex result. ctanhw() is an extended complex version of ctanh(); it takes an extended complex argument and returns an extended complex result. ctanhq() is equivalent to ctanhl() on HP-UX systems. USAGETo use these functions, compile with the default -Ae option. To use ctanhw() or ctanhq(), compile with the -fpwidetypes option. Make sure your program includes <complex.h>. Link in the math library by specifying -lm on the compiler or linker command line. RETURN VALUEctanh(conj(z)) = conj(ctanh(z)) and ctanh is odd. ctanh(+0+i0) returns +0+i0. ctanh(x+iInf) returns NaN+iNaN and raises the invalid floating-point exception, for finite x. ctanh(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite x. ctanh(+Inf+iy) returns 1+i0sin(2y), for positive-signed finite y. ctanh(+Inf+iInf) returns 1±i0 (where the sign of the imaginary part of the result is unspecified). ctanh(+Inf+iNaN) returns 1±i0 (where the sign of the imaginary part of the result is unspecified). ctanh(NaN+i0) returns NaN+i0. ctanh(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for all nonzero numbers y. ctanh(NaN+iNaN) returns NaN+iNaN. |
Printable version | ||
|