ccosf, ccos, ccosl
From cppreference.com
| Defined in header <complex.h>
|
||
| (1) | (since C99) | |
| (2) | (since C99) | |
| (3) | (since C99) | |
| Defined in header <tgmath.h>
|
||
| #define cos( z ) |
(4) | (since C99) |
1-3) Computes the complex cosine of
z.4) Type-generic macro: If
z has type long double complex, ccosl is called. if z has type double complex, ccos is called, if z has type float complex, ccosf is called. If z is real or integer, then the macro invokes the corresponding real function (cosf, cos, cosl). If z is imaginary, then the macro invokes the corresponding real version of the function cosh, implementing the formula cos(iy) = cosh(y), and the return type is real.Parameters
| z | - | complex argument |
Return value
If no errors occur, the complex cosine of z is returned.
Errors and special cases are handled as if the operation is implemented by ccosh(I*z).
Notes
The cosine is an entire function on the complex plane, and has no branch cuts.
Mathematical definition of the cosine is cos z =| eiz +e-iz |
| 2 |