| United States-English |
|
|
|
![]() |
HP-UX 11i Version 1.5 Reference Volume 4, Section 3: Libraries > ccsqrt(3M)IA-64 only |
|
NAMEcsqrt(), csqrtf() — complex square root functions SYNOPSIS#include <complex.h> double complex csqrt(double complex z); float complex csqrtf(float complex z); DESCRIPTIONThese functions are available only for IA-64. csqrt() returns the complex square root of z in the range of the right half-plane (including the imaginary axis). There is a branch cut along the negative real axis. csqrtf() is a float complex version of csqrt(); 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 VALUEScsqrt(conj(z)) = conj(csqrt(z)). csqrt(±0+i0) returns +0+i0. csqrt(x+iInf) returns +Inf+iInf, for all x (including NaN). csqrt(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite x. csqrt(-Inf+iy) returns +0+iInf, for finite positive-signed y. csqrt(+Inf+iy) returns +Inf+i0, for finite positive-signed y. csqrt(-Inf+iNaN) returns NaN+-iInf (where the sign of the imaginary part of the result is unspecified). csqrt(+Inf+iNaN) returns +Inf+iNaN. csqrt(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite y. csqrt(NaN+iNaN) returns NaN+iNaN. |
||||||||||||||||||||||||||||
|
|||||||||||||||