cis.3m (2010 09)
c
cis(3M) cis(3M)
(HP Integrity Server Only)
NAME
cis( ), cisf( ), cisl( ), cisw( ), cisq( ) - complex value with unit magnitude and given angle (specified in radi-
ans)
SYNOPSIS
#include <complex.h>
double complex cis(double x);
float complex cisf(float x);
long double complex cisl(long double x);
extended complex cisw(extended x);
quad complex cisq(quad x);
DESCRIPTION
These functions are available only for Integrity servers.
cis() returns the complex value whose real and imaginary parts are the cosine and sine of x, respec-
tively.
cis(x) is equivalent to cexp(
ix ).
cisf() is a float complex version of cis(); it takes a float argument and returns a
float
complex
result.
cisl() is a long double complex version of cis(); it takes a long double argument and returns
a long double complex result.
cisw() is an extended complex version of cis(); it takes an extended argument and returns an
extended complex result.
cisq() is equivalent to cisl() on HP-UX systems.
USAGE
To use these functions, compile with the default
-Ae option. To use cisw() or
cisq(), 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
cis(-x) = conj(cis(x)).
cis(±0) returns 1±i0.
cis(+Inf) returns NaN+iNaN.
cis(NaN) returns NaN+iNaN.
ERRORS
No errors are defined.
SEE ALSO
cexp(3M), sincos(3M), sincosd(3M), complex(5).
STANDARDS CONFORMANCE
These functions are not specified by any standard.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1