るりまサーチ

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

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric imaginary
  4. numeric imag
  5. numeric magnitude

ライブラリ

クラス

検索結果

Numeric (38142.0)

数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。

...スです。Integer や Float などの数値クラス
Numeric のサブクラスとして実装されています。

演算や比較を行うメソッド(+, -, *, /, <=>)は Numeric のサブクラスで定義されま
す。Numeric で定義されているメソッドは、サブクラスで...
...提供されているメソッド
(+, -, *, /, %) を利用して定義されるものがほとんどです。
つまり Numeric で定義されているメソッドは、Numeric のサブクラスとして新たに数値クラスを定義した時に、
演算メソッド(+, -, *, /, %, <=>, coerce...
...- - - -
imag | o - - - - - o
imaginary
| o - - - - - o
infinite? | - - -...
...i | o - - - -
imag | o - - - o
imaginary
| o - - - o
infinite? | o - o - o...

Numeric#imaginary -> 0 (36113.0)

常に 0 を返します。

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

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

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

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

Numeric#imag -> 0 (21013.0)

常に 0 を返します。

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

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

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

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

Complex#imaginary -> Numeric (15209.0)

自身の虚部を返します。

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

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

@see Numeric#imag...

Complex#imag -> Numeric (109.0)

自身の虚部を返します。

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

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

@see Numeric#imag...

絞り込み条件を変える