Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > C

ccos(3M)

HP Integrity Server Only
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

ccos(), ccosf(), ccosl(), ccosw(), ccosq() — complex cosine functions

SYNOPSIS

#include <complex.h>

double complex ccos(double complex z);

float complex ccosf(float complex z);

long double complex ccosl(long double complex z);

extended complex ccosw(extended complex z);

quad complex ccosq(quad complex z);

DESCRIPTION

These functions are available only for Integrity servers.

ccos() returns the complex cosine of z.

ccosf() is a float complex version of ccos(); it takes a float complex argument and returns a float complex result.

ccosl() is a long double complex version of ccos(); it takes a long double complex argument and returns a long double complex result.

ccosw() is an extended complex version of ccos(); it takes an extended complex argument and returns an extended complex result.

ccosq() is equivalent to ccosl() on HP-UX systems.

USAGE

To use these functions, compile with the default -Ae option. To use ccosw() or ccosq(), 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

ccos(conj(z)) = conj(ccos(z)) and ccos is even.

ccos(+0+i0) returns 1-i0.

ccos(+0+iInf) returns NaN±i0 (where the sign of the imaginary part of the result is unspecified) and raises the invalid floating-point exception.

ccos(+0+iNaN) returns NaN±i0 (where the sign of the imaginary part of the result is unspecified).

ccos(x+iInf) returns NaN+iNaN and raises the invalid floating-point exception, for finite nonzero x.

ccos(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite nonzero x.

ccos(+Inf+i0) returns +Inf-i0.

ccos(+Inf+iy) returns +Inf(cos(y)-isin(y)), for finite nonzero y.

ccos(+Inf+iInf) returns ±Inf+iNaN (where the sign of the real part of the result is unspecified) and raises the invalid floating-point exception.

ccos(+Inf+iNaN) returns +Inf+iNaN.

ccos(NaN+i0) returns NaN±i0 (where the sign of the imaginary part of the result is unspecified).

ccos(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for all nonzero numbers y.

ccos(NaN+iNaN) returns NaN+iNaN.

ERRORS

No errors are defined.

STANDARDS CONFORMANCE

ccos(), ccosf(), ccosl() : ISO/IEC C99 (including Annex G, ``IEC 60559-compatible complex arithmetic'')

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.