파이썬 math.tan() 메서드
예시
다른 숫자(각도)의 탄젠트 찾기:
# Import math Library
import math
# Return the tangent of
different numbers
print (math.tan(90))
print (math.tan(-90))
print
(math.tan(45))
print
(math.tan(60))
정의 및 사용
이 math.tan()
메서드는 숫자의 탄젠트를 반환합니다.
통사론
math.tan(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
기술적 세부 사항
반환 값: | 숫자의 탄젠트를 나타내는 float 값 |
---|---|
파이썬 버전: | 1.4 |