接續昨天的繼續說明
cmath.sin(x)
x
的正弦值。cmath.sin(x)
x
(complex): 要計算正弦值的複數。x
的正弦值。import cmath
x = 0.5 + 0.5j
print(cmath.sin(x)) # 輸出: (0.6367380071391379+0.2812851812025053j)
cmath.tan(x)
x
的正切值。cmath.tan(x)
x
(complex): 要計算正切值的複數。x
的正切值。import cmath
x = 0.5 + 0.5j
print(cmath.tan(x)) # 輸出: (0.6554367319933124+0.6120851540030575j)
cmath.acosh(x)
x
的反雙曲餘弦值。cmath.acosh(x)
x
(complex): 要計算反雙曲餘弦值的複數。x
的反雙曲餘弦值。import cmath
x = 2 + 1j
print(cmath.acosh(x)) # 輸出: (1.3169578969248166+0.7853981633974483j)
cmath.atanh(x)
x
的反雙曲正切值。cmath.atanh(x)
x
(complex): 要計算反雙曲正切值的複數。x
的反雙曲正切值。import cmath
x = 0.5 + 0.5j
print(cmath.atanh(x)) # 輸出: (0.5493061443340548+0.522403162740893j)
cmath.cosh(x)
x
的雙曲餘弦值。cmath.cosh(x)
x
(complex): 要計算雙曲餘弦值的複數。x
的雙曲餘弦值。import cmath
x = 1 + 1j
print(cmath.cosh(x)) # 輸出: (1.5430806348152437+0.8414709848078965j)
cmath.sinh(x)
x
的雙曲正弦值。cmath.sinh(x)
x
(complex): 要計算雙曲正弦值的複數。x
的雙曲正弦值。import cmath
x = 1 + 1j
print(cmath.sinh(x)) # 輸出: (1.1752011936438014+0.8632093666488737j)