るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.036秒)
トップページ > クラス:Numeric[x] > クエリ:Complex[x] > クエリ:real[x] > ライブラリ:ビルトイン[x]

別のキーワード

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

キーワード

検索結果

Numeric#real -> Numeric (18140.0)

自身を返します。

...す。

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

//emlist[例][ruby]{
10.real # => 10
-10.real # => -10
0.1.real # => 0.1
Rational(2, 3).real # => (2/3)
//}

@see Numeric#imag、Complex#real...

Numeric#real? -> bool (6156.0)

常に true を返します。(Complex またはそのサブクラスではないことを意味します。)

...ます。(Complex またはそのサブクラスではないことを意味します。)

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

//emlist[例][ruby]{
10.real? # => true
-10.real? # => true
0.1.real?...
...# => true
Rational(2, 3).real? # => true
//}

@see Numeric#integer?、Complex#real?...

Numeric#imag -> 0 (15.0)

常に 0 を返します。

...常に 0 を返します。

//emlist[例][ruby]{
12.imag # => 0
-12.imag # => 0
1.2.imag # => 0
-1.2.imag # => 0
//}

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

@see Numeric#realComplex#imag...

Numeric#imaginary -> 0 (15.0)

常に 0 を返します。

...常に 0 を返します。

//emlist[例][ruby]{
12.imag # => 0
-12.imag # => 0
1.2.imag # => 0
-1.2.imag # => 0
//}

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

@see Numeric#realComplex#imag...