math.cos
math.tan
math.radians
Returns the tangent of x (in radians).
math.tan(x)
아래 값을 입력하면 예제에 즉시 반영됩니다.
import
math
print
import math print(math.tan(0)) # 0.0 print(math.tan(math.pi / 4)) # 1.0