るりまサーチ

最速Rubyリファレンスマニュアル検索!
456件ヒット [1-100件を表示] (0.063秒)

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

Complex#-@ -> Complex (6102.0)

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

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

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

Complex#<(other) -> bool (18.0)

@undef

...
@
undef...

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

@undef

...
@
undef...

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

@undef

...
@
undef...

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

@undef

...
@
undef...

絞り込み条件を変える

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

@undef

...
@
undef...

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

@undef

...
@
undef...

Complex#/(other) -> Complex (14.0)

商を計算します。

...商を計算します。

@
param other 自身を割る数

//emlist[例][ruby]{
Complex
(10.0) / 3 # => (3.3333333333333335+(0/1)*i)
Complex
(10) / 3 # => ((10/3)+(0/1)*i)
//}

@
see Numeric#quo...

Complex#fdiv(other) -> Complex (14.0)

self を other で割った商を返します。 実部と虚部が共に Float の値になります。

...elf を other で割った商を返します。
実部と虚部が共に Float の値になります。

@
param other 自身を割る数

//emlist[例][ruby]{
Complex
(11, 22).fdiv(3) # => (3.6666666666666665+7.333333333333333i)
Complex
(11, 22).quo(3) # => ((11/3)+(22/3)*i)
//}

@
see Complex#quo...
<< 1 2 3 ... > >>