2924件ヒット
[2901-2924件を表示]
(0.081秒)
別のキーワード
ライブラリ
モジュール
- Abbrev (12)
- Base64 (12)
- Benchmark (24)
- BigMath (96)
- CMath (36)
- Digest (12)
-
ERB
:: Util (12) - Etc (36)
- Fiddle (36)
- FileTest (54)
- FileUtils (391)
- Gem (12)
- JSON (132)
- Kernel (994)
- LUSolve (12)
- Marshal (48)
- Math (84)
- ObjectSpace (228)
- Open3 (12)
-
OpenSSL
:: ASN1 (540) - Process (84)
- Readline (12)
- Signal (24)
- Timeout (21)
キーワード
- Array (12)
- BMPString (24)
- BigDecimal (14)
- BitString (24)
- Boolean (24)
- Complex (24)
- E (12)
- Enumerated (24)
- Float (12)
- GeneralString (24)
- GeneralizedTime (24)
- GraphicString (24)
- IA5String (24)
- ISO64String (24)
- Integer (36)
- Null (24)
- NumericString (24)
- ObjectId (24)
- OctetString (24)
- PI (12)
- PrintableString (24)
- Rational (7)
- Sequence (24)
- Set (24)
- String (12)
- T61String (24)
- UTCTime (24)
- UTF8String (24)
- UniversalString (24)
- VideotexString (24)
-
_ _ callee _ _ (12) -
_ _ method _ _ (12) -
_ id2ref (12) - abbrev (12)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - argv0 (12)
-
at
_ exit (12) - atan (12)
- autoload (12)
- autoload? (12)
- benchmark (12)
- binding (12)
- bm (12)
- caller (36)
-
caller
_ locations (24) - catch (24)
- cbrt (18)
- cd (24)
- chdir (24)
- chmod (12)
-
chmod
_ R (12) - chomp (12)
- chop (12)
- chown (12)
-
chown
_ R (12) - cmp (12)
-
compare
_ file (12) - copy (12)
- cos (12)
-
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - cp (12)
-
cp
_ lr (7) -
cp
_ r (12) - decode (12)
-
define
_ finalizer (24) - dlunwrap (12)
- dlwrap (12)
- dump (36)
-
each
_ object (48) - empty? (9)
- eval (24)
- exec (48)
- exp (30)
- exp! (6)
- fail (36)
-
fast
_ unparse (12) - format (12)
- free (12)
- frexp (12)
- gamma (12)
-
garbage
_ collect (12) - gets (12)
-
global
_ variables (12) - groups (12)
- grpowned? (12)
- gsub (36)
- hexencode (12)
-
html
_ escape (12) - hypot (12)
- identical? (24)
- install (12)
- lambda (18)
- ldexp (12)
- link (12)
- ln (12)
-
ln
_ s (12) - load (36)
-
load
_ file (12) -
load
_ file! (12) -
local
_ variables (12) - log (24)
- loop (24)
- lusolve (12)
- makedirs (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - mkdir (12)
-
mkdir
_ p (12) - mkpath (12)
- move (12)
- mv (12)
- nprocessors (12)
- open (28)
- parse (12)
- parse! (12)
- pipeline (12)
- pp (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) - print (12)
- printf (24)
- proc (19)
- putc (12)
- puts (12)
- raise (36)
-
reachable
_ objects _ from (12) - readline (24)
- readlines (12)
- remove (12)
-
remove
_ entry (12) -
require
_ relative (12) - restore (24)
- rm (12)
-
rm
_ r (12) - rmdir (12)
-
set
_ trace _ func (12) - setproctitle (12)
- sin (12)
- sleep (24)
- socket? (12)
- spawn (48)
- sprintf (12)
- sqrt (30)
- srand (24)
- sub (24)
- symlink (12)
- sysconfdir (12)
- system (48)
- systmpdir (12)
- test (24)
- timeout (21)
- touch (12)
-
trace
_ object _ allocations (12) -
trace
_ var (36) - trap (24)
-
undefine
_ finalizer (12) - unparse (12)
-
untrace
_ var (12) - uptodate? (12)
-
urlsafe
_ encode64 (12) - wait (12)
- wait2 (12)
- waitpid (12)
- waitpid2 (12)
- warn (8)
-
win
_ platform? (12) - zero? (9)
検索結果
-
Math
. # sqrt(x) -> Float (13.0) -
x の非負の平方根(principal square root)を返します。
...x の非負の平方根(principal square root)を返します。
@param x 0または正の実数
@raise TypeError xに数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外の実数を指定した場合に発生します。
@raise RangeError xに実......数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
0.upto(10) {|x|
p [x, Math.sqrt(x), Math.sqrt(x)**2]
}
# => [0, 0.0, 0.0]
# [1, 1.0, 1.0]
# [2, 1.4142135623731, 2.0]
# [3, 1.73205080756888, 3.0]
# [4, 2.0, 4.0]
# [5, 2.23606797749979, 5.0]
# [6, 2.449... -
Kernel
. # test(cmd , file1 , file2) -> bool (9.0) -
2ファイル間のファイルテストを行います。
...間のファイルテストを行います。
@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file1 テストするファイルのパス......を表す文字列か IO オブジェクトを指定します。
@param file2 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 真偽値を返します。
以下は cmd として指定できる文字リテラルとその意味です。
:......ファイル1とファイル2が同一のファイルである
//emlist[例][ruby]{
IO.write("testfile1", "test1")
IO.write("testfile2", "test2")
%w(= < > -).each do |e|
result = test(e, "testfile1", "testfile2")
puts "#{e}: #{result}"
end
//}
# => =: true
# => <: false
# => >: false
# => -:...