1085件ヒット
[1-100件を表示]
(0.146秒)
種類
- インスタンスメソッド (808)
- モジュール関数 (190)
- 特異メソッド (48)
- 文書 (23)
- ライブラリ (16)
ライブラリ
- ビルトイン (712)
- bigdecimal (12)
- cmath (120)
- fileutils (24)
-
json
/ add / complex (24) - mathn (8)
- matrix (146)
クラス
キーワード
- * (12)
- ** (12)
- + (12)
- - (12)
-
/ (35) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- <=> (6)
- == (12)
- > (12)
- >= (12)
-
NEWS for Ruby 2
. 2 . 0 (11) - Rational (12)
- acos (6)
- acosh (6)
- angle (24)
- antisymmetric? (7)
- arg (24)
- asin (6)
- asinh (6)
- atan (6)
- atan2 (6)
- atanh (6)
- between? (12)
- cbrt (6)
- clamp (12)
- coerce (12)
- conj (12)
- conjugate (36)
- copy (12)
- cos (6)
- cosh (6)
- cp (12)
- denominator (24)
- exp (6)
- fdiv (54)
- finite? (9)
- imag (12)
- imaginary (12)
- infinite? (18)
- inspect (12)
-
json
_ create (12) - log (24)
- log10 (6)
- log2 (6)
- magnitude (24)
- mathn (4)
- matrix (12)
- norm (12)
- numerator (24)
- phase (24)
- polar (12)
- quo (24)
- r (12)
- rationalize (24)
- real (12)
- real? (12)
- rect (36)
- rectangular (36)
- rsqrt (4)
- sin (6)
- sinh (6)
-
skew
_ symmetric? (7) -
slice
_ before (24) - sqrt (10)
- tan (6)
- tanh (6)
-
to
_ c (48) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ r (12) -
to
_ s (12) - tr (12)
- trace (12)
検索結果
先頭5件
-
Complex
. rect(r , i = 0) -> Complex (27242.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...る Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangul......ar(1, 2) # => (1+2i)
//}
@see Kernel.#Complex... -
Complex
. rectangular(r , i = 0) -> Complex (27242.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...る Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangul......ar(1, 2) # => (1+2i)
//}
@see Kernel.#Complex... -
Complex
# numerator -> Complex (27219.0) -
分子を返します。
...分子を返します。
//emlist[例][ruby]{
Complex('1/2+2/3i').numerator # => (3+4i)
Complex(3).numerator # => (3+0i)
//}
@see Complex#denominator... -
Complex
. json _ create(hash) -> Complex (27217.0) -
JSON のオブジェクトから Complex のオブジェクトを生成して返します。
...JSON のオブジェクトから Complex のオブジェクトを生成して返します。
@param hash 実部をキー 'r'、虚部をキー 'i' に持つハッシュを指定します。... -
Complex
# rationalize -> Rational (27212.0) -
自身を Rational に変換します。
...自身を Rational に変換します。
@param eps 許容する誤差。常に無視されます。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_r # => (3/1)
Complex(3, 2).to_r # => RangeError
//}... -
Complex
# rationalize(eps) -> Rational (27212.0) -
自身を Rational に変換します。
...自身を Rational に変換します。
@param eps 許容する誤差。常に無視されます。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_r # => (3/1)
Complex(3, 2).to_r # => RangeError
//}... -
Complex
# inspect -> String (27130.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...emlist[例][ruby]{
Complex(2).inspect # => "(2+0i)"
Complex('-8/6').inspect # => "((-4/3)+0i)"
Complex('1/2i').inspect # => "(0+(1/2)*i)"
Complex(0, Float::INFINITY).inspect # => "(0+Infinity*i)"
Complex(Float::NAN, Float::NAN).inspect #... -
Complex
# to _ s -> String (27130.0) -
自身を "実部 + 虚部i" 形式の文字列にして返します。
...ます。
//emlist[例][ruby]{
Complex(2).to_s # => "2+0i"
Complex('-8/6').to_s # => "-4/3+0i"
Complex('1/2i').to_s # => "0+1/2i"
Complex(0, Float::INFINITY).to_s # => "0+Infinity*i"
Complex(Float::NAN, Float::NAN).to_s # => "NaN+NaN*i"... -
Complex
# denominator -> Integer (27118.0) -
分母を返します。
...と虚部の分母の最小公倍数を整数で返します。
1 2 3+4i <- numerator(分子)
- + -i -> ----
2 3 6 <- denominator(分母)
//emlist[例][ruby]{
Complex('1/2+2/3i').denominator # => 6
Complex(3).numerator # => 1
//}
@see Complex#numerator...