別のキーワード
ライブラリ
- ビルトイン (297)
- benchmark (110)
- etc (33)
- fiddle (11)
- matrix (44)
- openssl (11)
- pathname (66)
-
rubygems
/ config _ file (11) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (18) - tempfile (11)
-
webrick
/ httpauth (22) -
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (22) -
webrick
/ httpauth / digestauth (11) -
webrick
/ httpauth / htdigest (44) -
webrick
/ httpauth / htpasswd (33) -
webrick
/ httpauth / userdb (33)
クラス
-
Benchmark
:: Tms (44) - Complex (55)
- File (55)
-
File
:: Stat (33) -
Gem
:: ConfigFile (11) - Matrix (44)
- Numeric (55)
- Pathname (66)
- Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (18) - Tempfile (11)
-
WEBrick
:: HTTPAuth :: BasicAuth (22) -
WEBrick
:: HTTPAuth :: DigestAuth (11) -
WEBrick
:: HTTPAuth :: Htdigest (44) -
WEBrick
:: HTTPAuth :: Htpasswd (33)
モジュール
- Benchmark (66)
- Etc (33)
- Fiddle (11)
- FileTest (33)
-
OpenSSL
:: ASN1 (11) - Process (55)
-
WEBrick
:: HTTPAuth (22) -
WEBrick
:: HTTPAuth :: Authenticator (11) -
WEBrick
:: HTTPAuth :: UserDB (33)
キーワード
-
CLOCK
_ REALTIME (11) -
CLOCK
_ REALTIME _ ALARM (11) -
CLOCK
_ REALTIME _ COARSE (11) -
CLOCK
_ REALTIME _ FAST (11) -
CLOCK
_ REALTIME _ PRECISE (11) - FORMAT (22)
-
NEWS for Ruby 2
. 5 . 0 (7) - Numeric (11)
- REAL (11)
-
REALLOC
_ N (11) -
SC
_ REALTIME _ SIGNALS (11) -
SC
_ XOPEN _ REALTIME (11) -
SC
_ XOPEN _ REALTIME _ THREADS (11) - abs (11)
- abs2 (11)
-
basic
_ auth (11) - benchmark (11)
- bigdecimal (11)
- bm (11)
- bmbm (11)
- close (11)
-
delete
_ passwd (22) - each (11)
-
executable
_ real? (62) - format (11)
-
get
_ passwd (33) - imag (11)
- imaginary (11)
- integer? (11)
- magnitude (11)
-
make
_ passwd (33) - measure (11)
- new (11)
-
proxy
_ basic _ auth (11) -
rb
_ class _ real (11) -
readable
_ real? (62) - real? (33)
- realdirpath (22)
- realloc (11)
-
really
_ verbose (11) - realm (22)
- realpath (33)
- realtime (11)
- rect (11)
- rectangular (11)
-
ruby
_ xrealloc (11) -
set
_ passwd (33) -
writable
_ real? (62) - 正規表現 (11)
検索結果
先頭5件
-
Numeric
# real -> Numeric (18131.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... -
Complex
# real -> Numeric (18107.0) -
自身の実部を返します。
...自身の実部を返します。
//emlist[例][ruby]{
Complex(3, 2).real # => 3
//}... -
Matrix
# real -> Matrix (18107.0) -
行列の実部を返します。
...行列の実部を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
# => 1+2i i 0
# 1 2 3
Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].real
# => 1 0 0
# 1 2 3
//}... -
Benchmark
:: Tms # real -> Float (18101.0) -
実経過時間。
実経過時間。 -
Matrix
# real? -> bool (6135.0) -
行列の全要素が実(Numeric#real?)であれば true を返します。
...全要素が実(Numeric#real?)であれば true を返します。
Complexオブジェクトを要素に持つ場合は虚部が0でも偽を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[[1, 0], [0, 1]].real? # => true
Matrix[[Complex(0, 1), 0], [0, 1]].real? # => false
# 要素が......実数であっても Complex オブジェクトなら偽を返す。
Matrix[[Complex(1, 0), 0], [0, 1]].real? # => false
//}... -
Numeric
# real? -> bool (6131.0) -
常に true を返します。(Complex またはそのサブクラスではないことを意味します。)
...eric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.real? # => true
-10.real? # => true
0.1.real? # => true
Rational(2, 3).real? # => true
//}
@see Numeric#integer?、Complex#real?... -
Pathname
# executable _ real? -> bool (6123.0) -
FileTest.executable_real?(self.to_s) と同じです。
...FileTest.executable_real?(self.to_s) と同じです。
@see FileTest.#executable_real?... -
Pathname
# readable _ real? -> bool (6123.0) -
FileTest.readable_real?(self.to_s) と同じです。
...FileTest.readable_real?(self.to_s) と同じです。
@see FileTest.#readable_real?... -
Pathname
# writable _ real? -> bool (6123.0) -
FileTest.writable_real?(self.to_s) と同じです。
...FileTest.writable_real?(self.to_s) と同じです。
@see FileTest.#writable_real?... -
Complex
# real? -> false (6119.0) -
常に false を返します。
...常に false を返します。
//emlist[例][ruby]{
(2+3i).real? # => false
(2+0i).real? # => false
//}
@see Numeric#real?...