Python의 복소수 | 세트 3(삼각함수 및 쌍곡선 함수)
중요한 복소수 함수 중 일부는 아래 문서에서 설명합니다. Python의 복소수 | 세트 1(소개) Python의 복소수 | 세트 2(중요 기능 및 상수) 이 문서에서는 삼각함수와 쌍곡선 함수에 대해 설명합니다. 삼각함수 1. 죄() : 이 함수는 그들의 것 인수에 전달된 복소수의 값입니다. 2. 코스() : 이 함수는 코사인 인수에 전달된 복소수의 값입니다. 3. 탄() : 이 함수는 접선 of the complex number passed in argument. Python
4. 소금() : 이 함수는 아크사인 인수에 전달된 복소수의 값입니다. 5.아코스() : 이 함수는 아크코사인 인수에 전달된 복소수의 값입니다. 6. 아탄() : 이 함수는 아크탄젠트 of the complex number passed in argument. Python
쌍곡선 함수 1. 탄생() : 이 함수는 쌍곡사인 인수에 전달된 복소수의 값입니다. 2. 코쉬() : 이 함수는 쌍곡선 코사인 인수에 전달된 복소수의 값입니다. 3.탄() : 이 함수는 쌍곡탄젠트 of the complex number passed in argument. Python
4. 아신() : 이 함수는 역쌍곡사인 인수에 전달된 복소수의 값입니다. 5. 아코쉬() : 이 함수는 역쌍곡선 코사인 인수에 전달된 복소수의 값입니다. 6. 아탄() : 이 함수는 역쌍곡탄젠트 of the complex number passed in argument. Python
# Python code to demonstrate the working of # sin() cos() tan() # importing 'cmath' for complex number operations import cmath # Initializing real numbers x = 1.0 y = 1.0 # converting x and y into complex number z z = complex ( x y ); # printing sine of the complex number print ( 'The sine value of complex number is : ' end = '' ) print ( cmath . sin ( z )) # printing cosine of the complex number print ( 'The cosine value of complex number is : ' end = '' ) print ( cmath . cos ( z )) # printing tangent of the complex number print ( 'The tangent value of complex number is : ' end = '' ) print ( cmath . tan ( z ))
Output: The sine value of complex number is : (1.2984575814159773+0.6349639147847361j) The cosine value of complex number is : (0.8337300251311491-0.9888977057628651j) The tangent value of complex number is : (0.2717525853195118+1.0839233273386946j)
4. 소금() : 이 함수는 아크사인 인수에 전달된 복소수의 값입니다. 5.아코스() : 이 함수는 아크코사인 인수에 전달된 복소수의 값입니다. 6. 아탄() : 이 함수는 아크탄젠트 of the complex number passed in argument. Python
# Python code to demonstrate the working of # asin() acos() atan() # importing 'cmath' for complex number operations import cmath # Initializing real numbers x = 1.0 y = 1.0 # converting x and y into complex number z z = complex ( x y ); # printing arc sine of the complex number print ( 'The arc sine value of complex number is : ' end = '' ) print ( cmath . asin ( z )) # printing arc cosine of the complex number print ( 'The arc cosine value of complex number is : ' end = '' ) print ( cmath . acos ( z )) # printing arc tangent of the complex number print ( 'The arc tangent value of complex number is : ' end = '' ) print ( cmath . atan ( z ))
Output: The arc sine value of complex number is : (0.6662394324925153+1.0612750619050357j) The arc cosine value of complex number is : (0.9045568943023814-1.0612750619050357j) The arc tangent value of complex number is : (1.0172219678978514+0.40235947810852507j)
쌍곡선 함수 1. 탄생() : 이 함수는 쌍곡사인 인수에 전달된 복소수의 값입니다. 2. 코쉬() : 이 함수는 쌍곡선 코사인 인수에 전달된 복소수의 값입니다. 3.탄() : 이 함수는 쌍곡탄젠트 of the complex number passed in argument. Python
# Python code to demonstrate the working of # sinh() cosh() tanh() # importing 'cmath' for complex number operations import cmath # Initializing real numbers x = 1.0 y = 1.0 # converting x and y into complex number z z = complex ( x y ); # printing hyperbolic sine of the complex number print ( 'The hyperbolic sine value of complex number is : ' end = '' ) print ( cmath . sinh ( z )) # printing hyperbolic cosine of the complex number print ( 'The hyperbolic cosine value of complex number is : ' end = '' ) print ( cmath . cosh ( z )) # printing hyperbolic tangent of the complex number print ( 'The hyperbolic tangent value of complex number is : ' end = '' ) print ( cmath . tanh ( z ))
Output: The hyperbolic sine value of complex number is : (0.6349639147847361+1.2984575814159773j) The hyperbolic cosine value of complex number is : (0.8337300251311491+0.9888977057628651j) The hyperbolic tangent value of complex number is : (1.0839233273386946+0.2717525853195117j)
4. 아신() : 이 함수는 역쌍곡사인 인수에 전달된 복소수의 값입니다. 5. 아코쉬() : 이 함수는 역쌍곡선 코사인 인수에 전달된 복소수의 값입니다. 6. 아탄() : 이 함수는 역쌍곡탄젠트 of the complex number passed in argument. Python
# Python code to demonstrate the working of # asinh() acosh() atanh() # importing 'cmath' for complex number operations import cmath # Initializing real numbers x = 1.0 y = 1.0 # converting x and y into complex number z z = complex ( x y ); # printing inverse hyperbolic sine of the complex number print ( 'The inverse hyperbolic sine value of complex number is : ' end = '' ) print ( cmath . asinh ( z )) # printing inverse hyperbolic cosine of the complex number print ( 'The inverse hyperbolic cosine value of complex number is : ' end = '' ) print ( cmath . acosh ( z )) # printing inverse hyperbolic tangent of the complex number print ( 'The inverse hyperbolic tangent value of complex number is : ' end = '' ) print ( cmath . atanh ( z ))
Output: The inverse hyperbolic sine value of complex number is : (1.0612750619050357+0.6662394324925153j) The inverse hyperbolic cosine value of complex number is : (1.0612750619050357+0.9045568943023813j) The inverse hyperbolic tangent value of complex number is : (0.40235947810852507+1.0172219678978514j)