るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.047秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:@[x] > クエリ:@[x] > クエリ:tan[x] > クラス:Complex[x]

別のキーワード

  1. math tan
  2. _builtin tan
  3. cmath tan
  4. cmath tan!
  5. tan cmath

検索結果

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

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

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

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

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

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

@
see Kernel.#Complex...

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

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

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

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

@
see Numeric#rect...