るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.015秒)
トップページ > クラス:Complex[x] > クエリ:rect[x] > バージョン:2.5.0[x] > 種類:特異メソッド[x]

別のキーワード

  1. _builtin rect
  2. matrix rect
  3. complex rect
  4. numeric rect

ライブラリ

検索結果

Complex.rect(r, i = 0) -> Complex (54346.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(r, i = 0) -> Complex (18346.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...