python math cos degrees code example
Example 1: cos in python in degrees
math.cos(math.radians(1))
# math.cos takes radians
# math.radians converts radians to degrees
Example 2: python floor
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4