HPlogo HP-UX Reference > C

cisd(3M)

HP Integrity Server Only
HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

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, respectively; 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.

STANDARDS CONFORMANCE

These functions are not specified by any standard.