Method name:
cos(aRadians_in)
Parameters:
aRadians_in : Angle in radians for which the cosine value is to be found.
Method overview:
In Python, the math.cos() function returns the cosine value for the given angle in radians. The cosine value of an angle is given by the ratio of adjacent to the hypotenuse.

Return value:
The cosine value for the given angle in radians is returned.
Example:
|
# Example Python program that finds the # Find the cosine value for zero degrees # Find the cosine value for 30 degrees # Find the cosine value for 45 degrees # Find the cosine value for 60 degrees # Find the cosine value for 90 degrees # math.cos(degrees) : Python Example: Printing cosine values for common # angles |
Output:
|
Cosine(0 degrees):1.0 |