2242件ヒット
[101-200件を表示]
(0.024秒)
ライブラリ
- ビルトイン (1376)
- bigdecimal (84)
-
bigdecimal
/ jacobian (24) - csv (24)
- mathn (13)
- matrix (168)
- mkmf (24)
-
net
/ ftp (24) -
net
/ http (7) - openssl (84)
- optparse (144)
- psych (19)
- securerandom (8)
- socket (96)
クラス
- BigDecimal (84)
- Bignum (12)
- CSV (24)
- Complex (180)
-
Enumerator
:: ArithmeticSequence (49) - Fixnum (9)
- Float (48)
- Integer (288)
- Matrix (84)
-
Matrix
:: LUPDecomposition (24) -
Net
:: FTP (24) -
Net
:: HTTP (7) - Numeric (611)
- Object (24)
-
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: BN (12) - OptionParser (144)
- Range (12)
- Rational (28)
- Socket (48)
- Time (53)
- UnboundMethod (12)
- Vector (36)
モジュール
- GC (24)
- Jacobian (24)
- Kernel (24)
- Math (8)
-
OpenSSL
:: ASN1 (36) - Psych (19)
- SecureRandom (8)
-
Socket
:: Constants (48)
キーワード
- % (36)
- * (60)
- ** (16)
- + (12)
- +@ (12)
- - (12)
- -@ (12)
-
/ (96) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (12)
-
AI
_ NUMERICHOST (24) -
AI
_ NUMERICSERV (24) - ArithmeticSequence (7)
- Complex (12)
- Converters (12)
- Matrix (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (5) -
NI
_ NUMERICHOST (24) -
NI
_ NUMERICSERV (24) - NUMERICSTRING (12)
- NumericString (36)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- Vector (12)
- [] (30)
- abs (24)
- abs2 (24)
- alphanumeric (8)
- angle (24)
- arg (24)
- at (53)
- begin (7)
- bigdecimal (12)
- ceil (24)
-
check
_ signedness (24) - clone (12)
- coerce (36)
- conj (12)
- conjugate (12)
- denominator (12)
- det (24)
- determinant (24)
- dfdxi (12)
- div (24)
- divmod (42)
- downto (24)
- dup (12)
- end (7)
- eql? (12)
- fdiv (30)
- finite? (9)
- first (14)
- floor (36)
- i (12)
- imag (24)
- imaginary (24)
- infinite? (9)
- integer? (12)
- jacobian (12)
- last (14)
- magnitude (24)
- matrix (12)
- modulo (36)
- negative? (10)
- new (24)
- nonzero? (12)
- numerator (12)
- on (144)
-
open
_ timeout (12) - owner (12)
- phase (24)
- polar (24)
- positive? (10)
- pow (24)
- quo (48)
-
rb
_ num2dbl (12) -
read
_ timeout (12) - real (24)
- real? (36)
- rect (24)
- rectangular (24)
- remainder (39)
- round (24)
- rsqrt (4)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
safe
_ load (19) - size (12)
- sqrt (4)
- stat (24)
- step (100)
- table (12)
- times (24)
-
to
_ c (12) -
to
_ i (12) -
to
_ int (12) - truncate (36)
- upto (24)
-
write
_ timeout (7) - zero? (12)
検索結果
先頭5件
-
Numeric
# remainder(other) -> Numeric (30226.0) -
self を other で割った余り r を返します。
...other 自身を割る数を指定します。
//emlist[例][ruby]{
p 13.remainder(4) #=> 1
p (11.5).remainder(3.5) #=> 1.0
p 13.remainder(-4) #=> 1
p (-13).remainder(4) #=> -1
p (-13).remainder(-4) #=> -1
p (-11).remainder(3.5) #=> -0.5
//}
@see Numeric#divmod, Numeric#modulo... -
Numeric
# conj -> Numeric (30216.0) -
常に self を返します。
...が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.conj # => 10
0.... -
Numeric
# conjugate -> Numeric (30216.0) -
常に self を返します。
...が Complex かそのサブクラスのインスタンスの場合は、自身の共役複素数(実数の場合は常に自身)を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.conj # => 10
0.... -
Numeric
# / (other) -> Numeric (30214.0) -
除算の演算子です。 self を other で割った商を返します。
...除算の演算子です。
self を other で割った商を返します。
Numeric では定義されておらず、サブクラスの実装によります。
@see Integer#/, Float#/, Rational#/, Complex#/... -
Numeric
# abs2 -> Numeric (30214.0) -
自身の絶対値の 2 乗を返します。
...自身の絶対値の 2 乗を返します。
//emlist[例][ruby]{
2.abs2 # => 4
-2.abs2 # => 4
2.0.abs2 # => 4
-2.0.abs2 # => 4
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。... -
Numeric
# coerce(other) -> [Numeric] (30214.0) -
自身と other が同じクラスになるよう、自身か other を変換し [other, self] という配列にして返します。
...列にして返します。
デフォルトでは self と other を Float に変換して [other, self] という配列にして返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
以下は Rational の coerce のソースです... -
Numeric
# abs -> Numeric (30204.0) -
自身の絶対値を返します。
自身の絶対値を返します。
//emlist[例][ruby]{
12.abs #=> 12
(-34.56).abs #=> 34.56
-34.56.abs #=> 34.56
//} -
Numeric
# magnitude -> Numeric (30204.0) -
自身の絶対値を返します。
自身の絶対値を返します。
//emlist[例][ruby]{
12.abs #=> 12
(-34.56).abs #=> 34.56
-34.56.abs #=> 34.56
//} -
Numeric
# -@ -> Numeric (30202.0) -
単項演算子の - です。 self の符号を反転させたものを返します。
単項演算子の - です。
self の符号を反転させたものを返します。
このメソッドは、二項演算子 - で 0 - self によって定義されています。
@see Integer#-@、Float#-@、Rational#-@、Complex#-@