Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > cos

cos

Example: cos Mathematics Functions

Computes the cosine of an angle in radians.

double cos( double x); 

x An angle expressed in radians. (180 degrees = PI radians)

Return Values

The cosine of the specified angle.