るりまサーチ

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

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric coerce
  4. numeric modulo
  5. numeric polar

ライブラリ

クラス

モジュール

キーワード

検索結果

<< < 1 2 3 4 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#-@...
<< < 1 2 3 4 5 ... > >>