Python cmath.atan()メソッド
例
複素数のアークタンジェントを見つけます。
#import cmath for complex number operations
import cmath
#find
the arc tangent of a complex number
print (cmath.atan(2 + 3j))
定義と使用法
このcmath.atan()
メソッドは、複素数のアークタンジェントを返します。
主に2つのブランチカットがあります。
- 虚軸に沿った1jから右に向かって∞jまで伸びる
- 虚軸に沿って-1jから左に向かって-∞jまで伸びる
構文
cmath.atan(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A number to find the arctangent of |
技術的な詳細
戻り値: | complex 複素数のアークタンジェントを表す値 |
---|---|
Pythonバージョン: | 2.62.6 |