549件ヒット
[401-500件を表示]
(0.014秒)
種類
- インスタンスメソッド (494)
- 特異メソッド (44)
- 定数 (11)
ライブラリ
- ビルトイン (527)
-
json
/ add / complex (22)
キーワード
- * (11)
- ** (11)
- + (11)
- - (11)
- -@ (11)
-
/ (11) - < (11)
- <= (11)
- <=> (5)
- == (11)
- > (11)
- >= (11)
- I (11)
- abs (11)
- abs2 (11)
- angle (11)
- arg (11)
- between? (11)
- clamp (11)
- coerce (11)
- conj (11)
- conjugate (11)
- denominator (11)
- fdiv (11)
- finite? (8)
- imag (11)
- imaginary (11)
- infinite? (8)
- inspect (11)
-
json
_ create (11) - magnitude (11)
-
marshal
_ dump (11) - numerator (11)
- phase (11)
- polar (22)
- quo (11)
- rationalize (22)
- real (11)
- real? (11)
- rect (22)
- rectangular (22)
-
to
_ c (11) -
to
_ f (11) -
to
_ i (11) -
to
_ json (11) -
to
_ r (11) -
to
_ s (11)
検索結果
先頭5件
-
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