파이썬 cmath.sin() 메서드
예시
복소수의 사인 찾기:
#import cmath for complex number operations
import cmath
#find
the sine of complex number
print (cmath.sin(2 + 3j))
정의 및 사용
이 cmath.sin()
메서드는 숫자의 사인을 반환합니다.
사인은 직각 삼각형의 반대쪽과 빗변 사이의 비율을 나타내는 삼각 함수입니다.
통사론
cmath.sin(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. A number to find the sine of |
기술적 세부 사항
반환 값: | complex 복소수의 사인을 나타내는 값 |
---|---|
파이썬 버전: | 1.5 |