Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

trigonometry in python

import math

#math.sin/cos/tan only work for angles in radians
print(math.sin(math.pi/3)) #pi/3 radians is converted to 60 degrees
print(math.tan(math.pi/3))
print(math.cos(math.pi/6))
 
PREVIOUS NEXT
Tagged: #trigonometry #python
ADD COMMENT
Topic
Name
7+8 =