Syntax
double cos(
    double rad
);
ContentsIndex
PreviousUpNext
cos
Syntax
double cos(
    double rad
);
Description

Calculates the cosine of an angle (in radians). The result will be between -1 and 1.

Parameters
Parameters 
Description 
double rad 
the angle in radians (float)  
Returns

The cosine of the angle ("double")

File

math.h

Group