ccos, ccosf, ccosl

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at ccos, ccosf, ccosl.

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 in the Introduction.

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