HP-UX Reference (11i v2 07/12) - 3 Library Functions A-M (vol 6)

c
cisd(3M) cisd(3M)
(HP Integrity Server Only)
NAME
cisd(), cisdf(), cisdl(), cisdw(), cisdq() - complex value with unit magnitude and given angle specified in
degrees
SYNOPSIS
#include <complex.h>
double complex cisd(double
x);
float complex cisdf(float
x);
long double complex cisdl(long double
x);
extended complex cisdw(extended
x);
quad complex cisdq(quad
x);
DESCRIPTION
cisd() returns the complex value whose real and imaginary parts are the cosine and sine of x, respec-
tively; where x is specified in degrees.
cisdf() is a float complex version of cisd(); it takes a float argument and returns a
float
complex
result.
cisdl() is a long double complex version of cisd(); it takes a long double argument and
returns a
long double complex result.
cisdw() is an extended complex version of cisd(); it takes an extended argument and returns
an extended complex result.
cisdq() is equivalent to cisdl() on HP-UX systems.
USAGE
To use these functions, compile with the default -Ae option. To use cisdw() or
cisdq(), 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 VALUE
cisd(-x) = conj(cisd( x)).
cisd(±0) returns 1±i0.
cisd(+Inf) returns NaN+iNaN.
cisd(NaN) returns NaN+iNaN.
ERRORS
No errors are defined.
SEE ALSO
cis(3M), sincosd(3M), complex(5).
STANDARDS CONFORMANCE
These functions are not specified by any standard.
HP-UX 11i Version 2: December 2007 Update 1 Hewlett-Packard Company 183