반응형 삼각함수2 [파이썬] 삼각함수 (numpy 모듈) 모듈 불러오기 import numpy as np 함수 사인 np.sin(라디안) 코사인 np.cos(라디안) 탄젠트 np.tan(라디안) 예시 사인 30도 >>> np.sin(math.pi/6) 0.49999999999999994 코사인 60도 >>> np.cos(math.pi/3) 0.5000000000000001 탄젠트 45도 >>> np.tan(math.pi/4) 0.9999999999999999 2022. 6. 27. [파이썬] 삼각함수 (math 모듈) 모듈 불러오기 import math 함수 사인 math.sin(라디안) 코사인 math.cos(라디안) 탄젠트 math.tan(라디안) 예시 사인 30도 >>> math.sin(math.pi/6) 0.49999999999999994 코사인 60도 >>> math.cos(math.pi/3) 0.5000000000000001 탄젠트 45도 >>> math.tan(math.pi/4) 0.9999999999999999 2022. 6. 27. 이전 1 다음 반응형