最速Rubyリファレンスマニュアル検索!
すべて(108)
2.1.0(9)
2.2.0(9)
2.3.0(9)
2.4.0(9)
2.5.0(9)
2.6.0(9)
2.7.0(9)
3.0(9)
3.1(9)
3.2(9)
3.3(9)
3.4(9)
108件ヒット
[101-108件を表示]
(0.069秒)
トップページ
>
:
インスタンスメソッド
>
:
Math
>
:phase
別のキーワード
math log
math sqrt
_builtin math
bigdecimal/math e
bigdecimal/math pi
ライブラリ
ビルトイン
(108)
クラス
Complex
(36)
Float
(36)
Numeric
(36)
キーワード
angle
(36)
arg
(36)
検索結果
先頭1件
Complex
#
arg -> Float
<<
<
1
2
>>
Complex
#
arg -> Float
(8.0)
2.3.0
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.2
3.4
インスタンスメソッド
自身の偏角を[-π,π]の範囲で返します。
...
自身の偏角を[-π,π]の範囲で返します。
//emlist[例][ruby]{
Complex.polar(3,
Math
::PI/2).arg # => 1.5707963267948966
//}
非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-0.0 では値が変わります。
//emlist[例][ruby]
...
Complex
<<
<
1
2
>>