るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.041秒)
トップページ > クラス:Complex[x] > クエリ:-[x] > クエリ:polar[x] > クエリ:phase[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

キーワード

検索結果

Complex#phase -> Float (15256.0)

自身の偏角を[-π,π]の範囲で返します。

...を[-π,π]の範囲で返します。

//emlist[例][ruby]{
Complex
.polar(3, Math::PI/2).arg # => 1.5707963267948966
//}

非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-
0.0 では値が変わります。

//emlist[例][ruby]{
Complex
(-1, 0)...
...3589793
Complex
(-1, -0).arg #=> 3.141592653589793
Complex
(-1, -0.0).arg #=> -3.141592653589793

Complex
(0, 0.0).arg #=> 0.0
Complex
(0, -0.0).arg #=> -0.0
Complex
(-0.0, 0).arg #=> 3.141592653589793
Complex
(-0.0, -0.0).arg #=> -3.14159...

Complex#angle -> Float (156.0)

自身の偏角を[-π,π]の範囲で返します。

...を[-π,π]の範囲で返します。

//emlist[例][ruby]{
Complex
.polar(3, Math::PI/2).arg # => 1.5707963267948966
//}

非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-
0.0 では値が変わります。

//emlist[例][ruby]{
Complex
(-1, 0)...
...3589793
Complex
(-1, -0).arg #=> 3.141592653589793
Complex
(-1, -0.0).arg #=> -3.141592653589793

Complex
(0, 0.0).arg #=> 0.0
Complex
(0, -0.0).arg #=> -0.0
Complex
(-0.0, 0).arg #=> 3.141592653589793
Complex
(-0.0, -0.0).arg #=> -3.14159...

Complex#arg -> Float (156.0)

自身の偏角を[-π,π]の範囲で返します。

...を[-π,π]の範囲で返します。

//emlist[例][ruby]{
Complex
.polar(3, Math::PI/2).arg # => 1.5707963267948966
//}

非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-
0.0 では値が変わります。

//emlist[例][ruby]{
Complex
(-1, 0)...
...3589793
Complex
(-1, -0).arg #=> 3.141592653589793
Complex
(-1, -0.0).arg #=> -3.141592653589793

Complex
(0, 0.0).arg #=> 0.0
Complex
(0, -0.0).arg #=> -0.0
Complex
(-0.0, 0).arg #=> 3.141592653589793
Complex
(-0.0, -0.0).arg #=> -3.14159...