るりまサーチ

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

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

Complex#-@ -> Complex (6101.0)

自身の符号を反転させたものを返します。

...自身の符号を反転させたものを返します。

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

Complex.rect(r, i = 0) -> Complex (19.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 (19.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#<(other) -> bool (17.0)

@undef

...
@
undef...

Complex#<=(other) -> bool (17.0)

@undef

...
@
undef...

絞り込み条件を変える

Complex#>(other) -> bool (17.0)

@undef

...
@
undef...

Complex#>=(other) -> bool (17.0)

@undef

...
@
undef...

Complex#between?(min, max) -> bool (17.0)

@undef

...
@
undef...

Complex#clamp(range) -> object (17.0)

@undef

...
@
undef...
<< 1 2 3 ... > >>