るりまサーチ

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

別のキーワード

  1. _builtin complex
  2. complex rect
  3. complex polar
  4. kernel complex
  5. complex rationalize

ライブラリ

キーワード

検索結果

<< < ... 3 4 5 6 > >>

Complex#to_c -> self (21013.0)

self を返します。

...self を返します。

//emlist[例][ruby]{
Complex
(2).to_c # => (2+0i)
Complex
(-8, 6).to_c # => (-8+6i)
//}...

Complex#to_r -> Rational (21013.0)

自身を Rational に変換します。

...自身を Rational に変換します。

@param eps 許容する誤差。常に無視されます。

@raise RangeError 虚部が実数か、0 ではない場合に発生します。

//emlist[例][ruby]{
Complex
(3).to_r # => (3/1)
Complex
(3, 2).to_r # => RangeError
//}...

Complex#finite? -> bool (21007.0)

実部と虚部の両方が有限値の場合に true を、そうでない場合に false を返します。

...自身の絶対値が有限値の場合に true を、そうでない場合に false を返します。

//emlist[例][ruby]{
(1 + 1i).finite? # => true
(Float::INFINITY + 1i).finite? # => false
//}

@see Complex#infinite?...
...実部と虚部の両方が有限値の場合に true を、そうでない場合に false を返します。

//emlist[例][ruby]{
(1 + 1i).finite? # => true
(Float::INFINITY + 1i).finite? # => false
//}

@see Complex#infinite?...

Complex#imag -> Numeric (21007.0)

自身の虚部を返します。

...自身の虚部を返します。

//emlist[例][ruby]{
Complex
(3, 2).imag # => 2
//}

@see Numeric#imag...

Complex#imaginary -> Numeric (21007.0)

自身の虚部を返します。

...自身の虚部を返します。

//emlist[例][ruby]{
Complex
(3, 2).imag # => 2
//}

@see Numeric#imag...

絞り込み条件を変える

Complex#infinite? -> nil | 1 (21007.0)

実部と虚部のどちらも無限大ではない場合に nil を、そうでない場合に 1 を返します。

...自身の絶対値が無限大の場合に1を、そうでない場合に nil を返します。

//emlist[例][ruby]{
(1+1i).infinite? # => nil
(Float::INFINITY + 1i).infinite? # => 1
//}

@see Complex#finite?...
...実部と虚部のどちらも無限大ではない場合に nil を、そうでない場合に 1 を返します。

//emlist[例][ruby]{
(1+1i).infinite? # => nil
(Float::INFINITY + 1i).infinite? # => 1
//}

@see Complex#finite?...

Complex#polar -> [Numeric, Numeric] (21007.0)

自身の絶対値と偏角を配列にして返します。

...自身の絶対値と偏角を配列にして返します。

//emlist[例][ruby]{
Complex
.polar(1, 2).polar # => [1, 2]
//}

@see Numeric#polar...

Complex#real -> Numeric (21007.0)

自身の実部を返します。

...自身の実部を返します。

//emlist[例][ruby]{
Complex
(3, 2).real # => 3
//}...

Complex#<(other) -> bool (21001.0)

@undef

@undef

Complex#<=(other) -> bool (21001.0)

@undef

@undef

絞り込み条件を変える

Complex#>(other) -> bool (21001.0)

@undef

@undef
<< < ... 3 4 5 6 > >>