ccos(), ccosf(), ccosl() — Calculate the complex cosine

Standards

Standards / Extensions C or C++ Dependencies

C99
Single UNIX Specification, Version 3

both

z/OS V1R7
a compiler that is designed
to support C99

Format

#include <complex.h>

double complex ccos(double complex z);
float complex ccosf(float complex z);
long double complex ccosl(long double complex z);

General description

The ccos() family of functions compute the complex cosine of z.
Note: The following table shows the viable formats for these functions. See IEEE binary floating-point for more information about IEEE Binary Floating-Point.
Function Hex IEEE
ccos X X
ccosf X X
ccosl X X

Returned value

The ccos() family of functions return the complex cosine value.

Example

For an example of a similar function see cacos(), cexp() or cpow().

Related information