1024件ヒット
[1-100件を表示]
(0.071秒)
ライブラリ
- ビルトイン (866)
-
json
/ add / complex (12) - matrix (146)
クラス
モジュール
- Enumerable (24)
キーワード
- * (12)
- ** (12)
- + (12)
- - (12)
- -@ (24)
-
/ (35) - < (12)
- <= (12)
- <=> (6)
- == (12)
- > (12)
- >= (12)
- abs (12)
- abs2 (12)
- angle (24)
- antisymmetric? (7)
- arg (24)
- between? (12)
- clamp (12)
- coerce (12)
- conj (36)
- conjugate (36)
- denominator (24)
- fdiv (54)
- finite? (9)
- i (12)
- imag (36)
- imaginary (36)
- infinite? (18)
- inspect (12)
- magnitude (24)
-
marshal
_ dump (12) - norm (12)
- numerator (24)
- phase (24)
- polar (24)
- quo (24)
- r (12)
- rationalize (24)
- real (36)
- real? (36)
- rect (24)
- rectangular (24)
-
skew
_ symmetric? (7) -
slice
_ before (24) -
to
_ c (48) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ r (12) -
to
_ s (12) - tr (12)
- trace (12)
検索結果
先頭5件
-
Complex
# coerce(other) -> [Complex , Complex] (21225.0) -
other を Complex に変換して [変換後の other, self] の配列を返します。
...other を Complex に変換して [変換後の other, self] の配列を返します。
@raise TypeError 変換できないオブジェクトを指定した場合に発生します。
//emlist[例][ruby]{
Complex(1).coerce(2) # => [(2+0i), (1+0i)]
//}... -
Complex
# *(other) -> Complex (21126.0) -
積を計算します。
...積を計算します。
@param other 自身に掛ける数
//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//}... -
Complex
# fdiv(other) -> Complex (21120.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... -
Complex
# numerator -> Complex (21120.0) -
分子を返します。
...分子を返します。
//emlist[例][ruby]{
Complex('1/2+2/3i').numerator # => (3+4i)
Complex(3).numerator # => (3+0i)
//}
@see Complex#denominator... -
Complex
# / (other) -> Complex (21115.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
# quo(other) -> Complex (21115.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
# +(other) -> Complex (21114.0) -
和を計算します。
...和を計算します。
@param other 自身に足す数
//emlist[例][ruby]{
Complex(1, 2) + Complex(2, 3) # => (3+5i)
//}... -
Complex
# -(other) -> Complex (21114.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}... -
Complex
# -@ -> Complex (21114.0) -
自身の符号を反転させたものを返します。
...自身の符号を反転させたものを返します。
//emlist[例][ruby]{
-Complex(1) # => (-1+0i)
-Complex(-1, 1) # => (1-1i)
//}...