Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the cosine of a complex number.
Syntax
_Dcomplex ccos(
_Dcomplex z
);
_Fcomplex ccos(
_Fcomplex z
); // C++ only
_Lcomplex ccos(
_Lcomplex z
); // C++ only
_Fcomplex ccosf(
_Fcomplex z
);
_Lcomplex ccosl(
_Lcomplex z
);
Parameters
z
A complex number that represents the angle, in radians.
Return value
The cosine of z, in radians.
Remarks
Because C++ allows overloading, you can call overloads of ccos that take and return _Fcomplex and _Lcomplex values. In a C program, ccos always takes and returns a _Dcomplex value.
Requirements
| Routine | C header | C++ header |
|---|---|---|
ccos, ccosf, ccosl |
<complex.h> | <ccomplex> |
For more compatibility information, see Compatibility.
See also
Alphabetical function reference
catanh, catanhf, catanhl
ctanh, ctanhf, ctanhl
catan, catanf, catanl
csinh, csinhf, csinhl
casinh, casinhf, casinhl
ccosh, ccoshf, ccoshl
cacosh, cacoshf, cacoshl
cacos, cacosf, cacosl
ctan, ctanf, ctanl
csin, csinf, csinl
casin, casinf, casinl
csqrt, csqrtf, csqrtl