557件ヒット
[201-300件を表示]
(0.032秒)
種類
- インスタンスメソッド (470)
- 文書 (43)
- クラス (24)
- ライブラリ (12)
- モジュール関数 (8)
モジュール
- Math (8)
キーワード
- -@ (12)
-
/ (35) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 6 . 0 (7) - Ruby用語集 (12)
- abs (12)
- abs2 (12)
- angle (24)
- arg (24)
- conj (12)
- conjugate (12)
- denominator (12)
- fdiv (30)
- i (12)
- imag (24)
- imaginary (24)
- infinite? (9)
- magnitude (12)
- matrix (12)
- numerator (12)
- phase (24)
- polar (24)
- quo (24)
- real (24)
- real? (36)
- rect (24)
- rectangular (24)
- rsqrt (4)
- sqrt (4)
-
to
_ c (12)
検索結果
先頭5件
-
Complex
# quo(other) -> Complex (21120.0) -
商を計算します。
...商を計算します。
@param other 自身を割る数
//emlist[例][ruby]{
Complex(10.0) / 3 # => (3.3333333333333335+(0/1)*i)
Complex(10) / 3 # => ((10/3)+(0/1)*i)
//}
@see Numeric#quo... -
Numeric
# conj -> Numeric (21120.0) -
常に self を返します。
...常に self を返します。
自身が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emli......st[例][ruby]{
10.conj # => 10
0.1.conj # => 0.1
(2/3r).conj # => (2/3)
//}
@see Complex#conj... -
Numeric
# conjugate -> Numeric (21120.0) -
常に self を返します。
...常に self を返します。
自身が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emli......st[例][ruby]{
10.conj # => 10
0.1.conj # => 0.1
(2/3r).conj # => (2/3)
//}
@see Complex#conj... -
Numeric
# real -> Numeric (21119.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... -
Complex
# imag -> Numeric (21114.0) -
自身の虚部を返します。
...自身の虚部を返します。
//emlist[例][ruby]{
Complex(3, 2).imag # => 2
//}
@see Numeric#imag... -
Complex
# imaginary -> Numeric (21114.0) -
自身の虚部を返します。
...自身の虚部を返します。
//emlist[例][ruby]{
Complex(3, 2).imag # => 2
//}
@see Numeric#imag... -
Numeric
# / (other) -> Numeric (21113.0) -
除算の演算子です。 self を other で割った商を返します。
...除算の演算子です。
self を other で割った商を返します。
Numeric では定義されておらず、サブクラスの実装によります。
@see Integer#/, Float#/, Rational#/, Complex#/... -
Complex
# real -> Numeric (21107.0) -
自身の実部を返します。
...自身の実部を返します。
//emlist[例][ruby]{
Complex(3, 2).real # => 3
//}... -
Numeric
# -@ -> Numeric (21107.0) -
単項演算子の - です。 self の符号を反転させたものを返します。
...単項演算子の - です。
self の符号を反転させたものを返します。
このメソッドは、二項演算子 - で 0 - self によって定義されています。
@see Integer#-@、Float#-@、Rational#-@、Complex#-@...