Python 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 複素数の正弦を表す値 |
---|---|
Pythonバージョン: | 1.5 |