|
cosfunction
<cmath>
double cos ( double x ); float cos ( float x ); long double cos ( long double x ); Compute cosine Returns the cosine of an angle of x radians.In C++, this function is overloaded in <complex> and <valarray> (see complex cos and valarray cos). Parameters
Return ValueCosine of x.PortabilityIn C, only the double version of this function exists with this name.Example
Output:
See also
|