System Grab Bag

View all man pages from Linux (or from all projects)

Name

ccos, ccosf, ccosl - complex cosine function

Library

Math library ( libm ", " -lm )

Synopsis

#include <complex.h> 
double complex ccos(double complex  z );
float complex ccosf(float complex z );
long double complex ccosl(long double complex z );

Description

These functions calculate the complex cosine of z.

The complex cosine function is defined as:

ccos(z) = (exp(i * z) + exp(-i * z)) / 2

Attributes

For an explanation of the terms used in this section, see attributes(7). allbox; lbx lb lb T{ ccos()ccosf()ccosl()
InterfaceAttributeValue
T}Thread safetyMT-Safe

Standards

C11, POSIX.1-2008.

History

glibc 2.1. C99, POSIX.1-2001.

See Also

  1. cabs(3),
  2. cacos(3),
  3. csin(3),
  4. ctan(3),
  5. complex(7)