別のキーワード
ライブラリ
- ビルトイン (324)
- benchmark (120)
- etc (36)
- fiddle (12)
- matrix (48)
- openssl (12)
- pathname (72)
-
rubygems
/ config _ file (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (18) - tempfile (12)
-
webrick
/ httpauth (24) -
webrick
/ httpauth / authenticator (12) -
webrick
/ httpauth / basicauth (24) -
webrick
/ httpauth / digestauth (12) -
webrick
/ httpauth / htdigest (48) -
webrick
/ httpauth / htpasswd (36) -
webrick
/ httpauth / userdb (36)
クラス
-
Benchmark
:: Tms (48) - Complex (60)
- File (60)
-
File
:: Stat (36) -
Gem
:: ConfigFile (12) - Matrix (48)
- Numeric (60)
- Pathname (72)
- Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (18) - Tempfile (12)
-
WEBrick
:: HTTPAuth :: BasicAuth (24) -
WEBrick
:: HTTPAuth :: DigestAuth (12) -
WEBrick
:: HTTPAuth :: Htdigest (48) -
WEBrick
:: HTTPAuth :: Htpasswd (36)
モジュール
- Benchmark (72)
- Etc (36)
- Fiddle (12)
- FileTest (36)
-
OpenSSL
:: ASN1 (12) - Process (60)
-
WEBrick
:: HTTPAuth (24) -
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: UserDB (36)
キーワード
-
CLOCK
_ REALTIME (12) -
CLOCK
_ REALTIME _ ALARM (12) -
CLOCK
_ REALTIME _ COARSE (12) -
CLOCK
_ REALTIME _ FAST (12) -
CLOCK
_ REALTIME _ PRECISE (12) - FORMAT (24)
-
NEWS for Ruby 2
. 5 . 0 (8) - Numeric (12)
- REAL (12)
-
REALLOC
_ N (12) -
SC
_ REALTIME _ SIGNALS (12) -
SC
_ XOPEN _ REALTIME (12) -
SC
_ XOPEN _ REALTIME _ THREADS (12) - abs (12)
- abs2 (12)
-
basic
_ auth (12) - benchmark (12)
- bigdecimal (12)
- bm (12)
- bmbm (12)
- close (12)
-
delete
_ passwd (24) - each (12)
-
executable
_ real? (66) - format (12)
-
get
_ passwd (36) - imag (12)
- imaginary (12)
- integer? (12)
- magnitude (12)
-
make
_ passwd (36) - measure (12)
- new (12)
-
proxy
_ basic _ auth (12) -
rb
_ class _ real (12) -
readable
_ real? (66) - real? (36)
- realdirpath (24)
- realloc (12)
-
really
_ verbose (12) - realm (24)
- realpath (36)
- realtime (12)
- rect (12)
- rectangular (12)
-
ruby
_ xrealloc (12) -
set
_ passwd (36) -
writable
_ real? (66) - 正規表現 (12)
検索結果
先頭5件
-
Complex
# abs -> Numeric (6.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.70710678118... -
Complex
# abs2 -> Numeric (6.0) -
自身の絶対値の 2 乗を返します。
...自身の絶対値の 2 乗を返します。
以下の計算の結果を返します。
self.real ** 2 + self.imag ** 2
//emlist[例][ruby]{
Complex(1, 1).abs2 # => 2
Complex(1.0, 1.0).abs2 # => 2.0
Complex('1/2', '1/2').abs2 # => (1/2)
//}
@see Complex#abs... -
Complex
# magnitude -> Numeric (6.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.70710678118... -
Numeric
# imag -> 0 (6.0) -
常に 0 を返します。
...常に 0 を返します。
//emlist[例][ruby]{
12.imag # => 0
-12.imag # => 0
1.2.imag # => 0
-1.2.imag # => 0
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Numeric#real、Complex#imag... -
Numeric
# imaginary -> 0 (6.0) -
常に 0 を返します。
...常に 0 を返します。
//emlist[例][ruby]{
12.imag # => 0
-12.imag # => 0
1.2.imag # => 0
-1.2.imag # => 0
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Numeric#real、Complex#imag... -
Numeric
# integer? -> bool (6.0) -
自身が Integer かそのサブクラスのインスタンスの場合にtrue を返し ます。そうでない場合に false を返します。
...スタンスの場合にtrue を返し
ます。そうでない場合に false を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
(1.0).integer? #=> false
(1).integer? #=> true
//}
@see Numeric#real?...