るりまサーチ (Ruby 2.1.0)

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

別のキーワード

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

ライブラリ

検索結果

Numeric#rectangular -> [Numeric, Numeric] (9304.0)

[self, 0] を返します。

...[self, 0] を返します。

//emlist[例][ruby]{
1.rect # => [1, 0]
-1.rect # => [-1, 0]
1.0.rect # => [1.0, 0]
-1.0.rect # => [-1.0, 0]
//}

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

@see Complex#rect...