dev-logs

Python cheat sheet 본문

Language/Python

Python cheat sheet

두룹두두 2020. 8. 24. 17:26

계속 추가할 예정.

arctan, arctan2 차이

numpy.arctan(x1, x2)

  • arc tangent of x1/x2.
  • 출력 범위가 [-pi/2, pi/2]
  • 180도 이상 차이나는 각의 arctan 값은 구분이 안됨(ex: arctan(0), arctan(180) 은 같음).

numpy.arctan2(x1, x2)

  • arc tangent of x1/x2.
  • 출력 범위가 [-pi, pi]
  • C언어 atan2 함수와 같음.

'Language > Python' 카테고리의 다른 글

[에러해결] ImportError: DLL load failed  (0) 2019.11.24
Comments