るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.013秒)
トップページ > クラス:Complex[x] > バージョン:2.1.0[x] > クエリ:Complex[x] > クエリ:rectangular[x]

別のキーワード

  1. _builtin complex
  2. complex rectangular
  3. complex rect
  4. complex polar
  5. complex rationalize

検索結果

Complex.rectangular(r, i = 0) -> Complex (108751.0)

実部が r、虚部が i である Complex クラスのオブジェクトを生成します。

...ある Complex クラスのオブジェクトを生成します。

@param r 生成する複素数の実部。

@param i 生成する複素数の虚部。省略した場合は 0 です。

//emlist[例][ruby]{
Complex
.rect(1) # => (1+0i)
Complex
.rect(1, 2) # => (1+2i)
Complex
.rectan...
...gular(1, 2) # => (1+2i)
//}

@see Kernel.#Complex...

Complex#rectangular -> [Numeric, Numeric] (108361.0)

実部と虚部を配列にして返します。

...実部と虚部を配列にして返します。

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

@see Numeric#rect...

Complex.rect(r, i = 0) -> Complex (63451.0)

実部が r、虚部が i である Complex クラスのオブジェクトを生成します。

...ある Complex クラスのオブジェクトを生成します。

@param r 生成する複素数の実部。

@param i 生成する複素数の虚部。省略した場合は 0 です。

//emlist[例][ruby]{
Complex
.rect(1) # => (1+0i)
Complex
.rect(1, 2) # => (1+2i)
Complex
.rectan...
...gular(1, 2) # => (1+2i)
//}

@see Kernel.#Complex...

Complex#rect -> [Numeric, Numeric] (63061.0)

実部と虚部を配列にして返します。

...実部と虚部を配列にして返します。

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

@see Numeric#rect...