55件ヒット
[1-55件を表示]
(0.015秒)
検索結果
先頭5件
-
Numeric
# imaginary -> 0 (42244.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 (39144.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 (38148.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...スです。Integer や Float などの数値クラス
は Numeric のサブクラスとして実装されています。
演算や比較を行うメソッド(+, -, *, /, <=>)は Numeric のサブクラスで定義されま
す。Numeric で定義されているメソッドは、サブクラスで......i | o - - - - - -
imag | o - - - - - o
imaginary | o - - - - - o......- - - -
magnitude | o - o o o - o
Numeric Integer Fixnum Bignum Float Rational Complex
------------------------------------------------------......o o
i | o - - - -
imag | o - - - o
imaginary | o - - - o
infinite? | o -......r? | o o - - -
lcm | - o - - -
Numeric Integer Float Rational Complex
--------------------------------------------------------------------------------... -
Complex
# imaginary -> Numeric (21322.0) -
自身の虚部を返します。
...自身の虚部を返します。
//emlist[例][ruby]{
Complex(3, 2).imag # => 2
//}
@see Numeric#imag... -
Complex
# imag -> Numeric (18222.0) -
自身の虚部を返します。
...自身の虚部を返します。
//emlist[例][ruby]{
Complex(3, 2).imag # => 2
//}
@see Numeric#imag...