712件ヒット
[1-100件を表示]
(0.166秒)
種類
- インスタンスメソッド (524)
- モジュール関数 (106)
- 文書 (38)
- 特異メソッド (33)
- ライブラリ (11)
ライブラリ
- ビルトイン (435)
- bigdecimal (11)
- cmath (54)
-
json
/ add / complex (22) - mathn (8)
- matrix (133)
クラス
モジュール
- BigMath (11)
- CMath (54)
- Enumerable (22)
- Kernel (33)
- Math (8)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) - Rational (11)
- Ruby用語集 (11)
- abs (11)
- abs2 (11)
- angle (11)
- antisymmetric? (6)
- arg (11)
- asin (6)
- asinh (6)
- between? (11)
- cbrt (6)
- conj (11)
- conjugate (33)
- denominator (22)
- exp (6)
- fdiv (28)
- imag (33)
- imaginary (33)
-
json
_ create (11) - log (23)
- magnitude (22)
- matrix (11)
- norm (11)
- numerator (22)
- phase (11)
- polar (33)
- quo (11)
- r (11)
- rationalize (22)
- real (33)
- real? (33)
- rectangular (33)
- rsqrt (4)
- sin (6)
- sinh (6)
-
skew
_ symmetric? (6) -
slice
_ before (22) - sqrt (10)
-
to
_ c (11) -
to
_ json (11) -
to
_ r (11) - tr (11)
- trace (11)
検索結果
先頭5件
-
Complex
# rationalize -> Rational (33412.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 (33412.0) -
自身を Rational に変換します。
...自身を Rational に変換します。
@param eps 許容する誤差。常に無視されます。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_r # => (3/1)
Complex(3, 2).to_r # => RangeError
//}... -
Complex
# denominator -> Integer (33336.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... -
Complex
# imag -> Numeric (33206.0) -
自身の虚部を返します。
...自身の虚部を返します。
//emlist[例][ruby]{
Complex(3, 2).imag # => 2
//}
@see Numeric#imag... -
Complex
# imaginary -> Numeric (33206.0) -
自身の虚部を返します。
...自身の虚部を返します。
//emlist[例][ruby]{
Complex(3, 2).imag # => 2
//}
@see Numeric#imag... -
Complex
# magnitude -> Numeric (30224.0) -
自身の絶対値を返します。
...す。
以下の計算の結果を Float オブジェクトで返します。
sqrt(self.real ** 2 + self.imag ** 2)
//emlist[例][ruby]{
Complex(1, 2).abs # => 2.23606797749979
Complex(3, 4).abs # => 5.0
Complex('1/2', '1/2').abs # => 0.7071067811865476
//}
@see Complex#abs2... -
Complex
# polar -> [Numeric , Numeric] (27306.0) -
自身の絶対値と偏角を配列にして返します。
...自身の絶対値と偏角を配列にして返します。
//emlist[例][ruby]{
Complex.polar(1, 2).polar # => [1, 2]
//}
@see Numeric#polar... -
Complex
. polar(r , theta = 0) -> Complex (27253.0) -
絶対値が r、偏角が theta である Complex クラスのオブジェクトを生成します。
...eta である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の絶対値。
@param theta 生成する複素数の偏角。単位はラジアンです。省略した場合は 0 です。
//emlist[例][ruby]{
Complex.polar(2.0) # => (2.0+0.0i)......Complex.polar(2.0, 0) # => (2.0+0.0i)
Complex.polar(2.0, Math::PI) # => (-2.0+2.4492127076447545e-16i)
//}... -
Complex
# numerator -> Complex (27237.0) -
分子を返します。
...分子を返します。
//emlist[例][ruby]{
Complex('1/2+2/3i').numerator # => (3+4i)
Complex(3).numerator # => (3+0i)
//}
@see Complex#denominator... -
Complex
# abs -> Numeric (27224.0) -
自身の絶対値を返します。
...す。
以下の計算の結果を Float オブジェクトで返します。
sqrt(self.real ** 2 + self.imag ** 2)
//emlist[例][ruby]{
Complex(1, 2).abs # => 2.23606797749979
Complex(3, 4).abs # => 5.0
Complex('1/2', '1/2').abs # => 0.7071067811865476
//}
@see Complex#abs2...