| United States-English |
|
|
|
![]() |
HP-UX 11i Version 1.5 Reference Volume 4, Section 3: Libraries > ccatan(3M)IA-64 only |
|
NAMEcatan(), catanf() — complex arctangent functions SYNOPSIS#include <complex.h> double complex catan(double complex z); float complex catanf(float complex z); DESCRIPTIONThese functions are available only for IA-64. catan() returns the complex arctangent of z, in the range of a strip mathematically unbounded along the imaginary axis and in the interval [-Pi/2,+Pi/2] along the real axis. Branch cuts are outside the interval [-1,+1] along the imaginary axis. catanf() is a float complex version of catan(); it takes a float complex argument and returns a float complex result. USAGETo 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 VALUEScatan(conj(z)) = conj(catan(z)) and catan is odd. catan(+0+i0) returns +0+i0. catan(+NaN+i0) returns +NaN+i0. catan(+0+i1) returns +0+iInf and raises the divide-by-zero floating-point exception. catan(Inf+iy) returns Pi/2+i0, for finite positive-signed y. catan(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for nonzero finite y. catan(+x+iInf) returns Pi/2+i0, for finite positive-signed x. catan(+Inf+iInf) returns Pi/2+i0. catan(+NaN+iInf) returns +NaN+i0. catan(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite x. catan(Inf+iNaN) returns Pi/2+-i0 (where the sign of the imaginary part of the result is unspecified). catan(NaN+iNaN) returns NaN+iNaN. |
||||||||||||||||||||||||||||
|
|||||||||||||||