ライブラリ
- ビルトイン (881)
- bigdecimal (11)
- cmath (120)
- fileutils (22)
-
json
/ add / complex (22) - mathn (8)
- matrix (133)
クラス
キーワード
- * (11)
- ** (11)
- + (11)
- - (11)
- -@ (22)
-
/ (21) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- <= (11)
- <=> (5)
- == (11)
- > (11)
- >= (11)
- I (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) - Numeric (11)
- Rational (11)
- Ruby用語集 (11)
- abs (11)
- abs2 (11)
- acos (6)
- acosh (6)
- angle (22)
- antisymmetric? (6)
- arg (22)
- asin (6)
- asinh (6)
- atan (6)
- atan2 (6)
- atanh (6)
- between? (11)
- cbrt (6)
- clamp (11)
- coerce (11)
- conj (33)
- conjugate (33)
- copy (11)
- cos (6)
- cosh (6)
- cp (11)
- denominator (22)
- exp (6)
- fdiv (50)
- finite? (8)
- i (11)
- imag (33)
- imaginary (33)
- infinite? (16)
- inspect (11)
-
json
/ add / complex (11) -
json
_ create (11) - log (23)
- log10 (6)
- log2 (6)
- magnitude (22)
-
marshal
_ dump (11) - mathn (4)
- matrix (11)
- norm (11)
- numerator (22)
- phase (22)
- polar (33)
- quo (22)
- r (11)
- rationalize (22)
- real (33)
- real? (33)
- rect (33)
- rectangular (33)
- rsqrt (4)
- sin (6)
- sinh (6)
-
skew
_ symmetric? (6) -
slice
_ before (22) - sqrt (10)
- tan (6)
- tanh (6)
-
to
_ c (44) -
to
_ f (11) -
to
_ i (11) -
to
_ json (11) -
to
_ r (11) -
to
_ s (11) - tr (11)
- trace (11)
検索結果
先頭5件
-
Numeric
# real -> Numeric (6.0) -
自身を返します。
...す。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.real # => 10
-10.real # => -10
0.1.real # => 0.1
Rational(2, 3).real # => (2/3)
//}
@see Numeric#imag、Complex#real... -
Numeric
# rect -> [Numeric , Numeric] (6.0) -
[self, 0] を返します。
...[self, 0] を返します。
//emlist[例][ruby]{
1.rect # => [1, 0]
-1.rect # => [-1, 0]
1.0.rect # => [1.0, 0]
-1.0.rect # => [-1.0, 0]
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#rect... -
Numeric
# rectangular -> [Numeric , Numeric] (6.0) -
[self, 0] を返します。
...[self, 0] を返します。
//emlist[例][ruby]{
1.rect # => [1, 0]
-1.rect # => [-1, 0]
1.0.rect # => [1.0, 0]
-1.0.rect # => [-1.0, 0]
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#rect... -
Vector
# magnitude -> Float (6.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
Vector
# norm -> Float (6.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
Vector
# r -> Float (6.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
matrix (6.0)
-
行列と数ベクトルを扱うためのライブラリです。
...行列と数ベクトルを扱うためのライブラリです。
行列、ベクトルの各要素には Ruby の任意の数オブジェクト(Numeric の
サブクラス、Float, Integer, Complex, Rational など)
が使えます。...