python cos code example
Example 1: pi in python math
>>>import math
>>> math.pi
3.141592653589793
Example 2: python floor
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
Example 3: cos in python
from math import cos,pi
a = pi
b = cos(a)
c = 180
d = cos(c)
print(b,d) # returns -1,-0.59846
# cos function works with radians