るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

検索結果

Numeric#conjugate -> Numeric (78607.0)

常に self を返します。

...が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。

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


//emlist[例][ruby]{
10.conj # => 10
0....