C Programming/complex.h/ccos

Description
The C library provides with the  function which gives the cosine of a complex number.It is included in the header file complex.h. This function returns a double-precision floating point number.

The ccos function can be expressed as:

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