Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX 11i Version 1.5 Reference Volume 4, Section 3: Libraries > c

ctanh(3M)

IA-64 only
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

ctanh(), ctanhf() — complex hyperbolic tangent functions

SYNOPSIS

#include <complex.h>

double complex ctanh(double complex z);

float complex ctanhf(float complex z);

DESCRIPTION

These functions are available only for IA-64.

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.

USAGE

To use these functions, compile with the default -Ae option. Make sure your program includes <complex.h>. Link in the math library by specifying -lm on the compiler or linker command line.

RETURN VALUES

ctanh(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.

ERRORS

No errors are defined.

STANDARDS CONFORMANCE

ctanh(), ctanhf(): ISO/IEC C99 (including Annex G, IEC 60559-compatible complex arithmetic)

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2001 Hewlett-Packard Development Company, L.P.