るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.075秒)
トップページ > クエリ:Complex[x] > クエリ:i[x] > クエリ:conjugate[x] > 種類:インスタンスメソッド[x]

別のキーワード

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

ライブラリ

クラス

検索結果

Complex#conjugate -> Complex (36216.0)

自身の共役複素数を返します。

...自身の共役複素数を返します。

//emlist[例][ruby]{
Complex
(1, 2).conj # => (1-2i)
//}...

Complex#conj -> Complex (21116.0)

自身の共役複素数を返します。

...自身の共役複素数を返します。

//emlist[例][ruby]{
Complex
(1, 2).conj # => (1-2i)
//}...

Matrix#conjugate -> Matrix (18256.0)

複素共役を取った行列を返します。

...複素共役を取った行列を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
# => 1+2i i 0
# 1 2 3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].conjugate
# => 1-2i -i 0
# 1 2 3
//}...

Numeric#conjugate -> Numeric (18214.0)

常に self を返します。

...ます。

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

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


//emlist[例][ruby]{
10.conj...
...# => 10
0.1.conj # => 0.1
(2/3r).conj # => (2/3)
//}

@see Complex#conj...

Matrix#conj -> Matrix (3156.0)

複素共役を取った行列を返します。

...複素共役を取った行列を返します。

//emlist[例][ruby]{
require 'matrix'
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
# => 1+2i i 0
# 1 2 3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].conjugate
# => 1-2i -i 0
# 1 2 3
//}...

絞り込み条件を変える

Numeric#conj -> Numeric (3114.0)

常に self を返します。

...ます。

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

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


//emlist[例][ruby]{
10.conj...
...# => 10
0.1.conj # => 0.1
(2/3r).conj # => (2/3)
//}

@see Complex#conj...