Python cmath.tan()メソッド
例
複素数の接線を見つけます。
#Import cmath Library
import cmath
#Return the tangent of a
complex number
print (cmath.tan(2 + 3j))
定義と使用法
このcmath.tan()
メソッドは、複素数のタンジェントを返します。
構文
cmath.tan(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
技術的な詳細
戻り値: | complex 複素数のタンジェントを表す値 |
---|---|
Pythonバージョン: | 1.5 |