cos(rad)
Calculates the cosine of an angle. This function expects the values of the angle parameter to be provided in radians (values from 0 to PI * 2). Values are returned in the range -1 to 1.
Type: function
Parameter(s):
- rad {Number}:A value in radians. 
Returns:
- 
    {Number}:
 The cosine.