ライブラリ
- ビルトイン (661)
- bigdecimal (33)
-
bigdecimal
/ math (66) - cmath (246)
-
irb
/ ext / math-mode (12) -
irb
/ extend-command (11) - mathn (8)
- matrix (11)
- rake (11)
クラス
- Complex (44)
- Float (52)
-
IRB
:: Context (12) - Integer (29)
- Module (30)
- Numeric (44)
-
Rake
:: FileList (11) - Range (22)
- Vector (11)
モジュール
- BigMath (88)
- CMath (240)
- Enumerable (44)
-
IRB
:: ContextExtender (11) - Kernel (22)
- Math (327)
オブジェクト
- main (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - BigMath (11)
- CMath (6)
- DomainError (11)
- E (22)
- Float (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (8) - PI (22)
- Random (11)
- Ruby用語集 (11)
- acos (17)
- acos! (6)
- acosh (17)
- acosh! (6)
- angle (33)
-
angle
_ with (11) - arg (33)
- asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
- atan (28)
- atan! (6)
- atan2 (17)
- atan2! (6)
- atanh (17)
- atanh! (6)
- bigdecimal (11)
-
bigdecimal
/ math (11) - bsearch (22)
- cbrt (17)
- cbrt! (6)
- cmath (6)
- cos (28)
- cos! (6)
- cosh (17)
- cosh! (6)
- digits (22)
- erf (11)
- erfc (11)
- exp (28)
- exp! (6)
- frexp (11)
- gamma (11)
- hypot (11)
- include (33)
-
install
_ extend _ commands (11) - irb (4)
-
irb
/ ext / math-mode (4) - ldexp (11)
- lgamma (11)
- log (45)
- log! (12)
- log10 (17)
- log10! (6)
- log2 (17)
- log2! (6)
- math? (4)
-
math
_ mode (4) -
math
_ mode= (4) - mathn (4)
-
max
_ by (44) -
module
_ function (19) - phase (33)
- polar (22)
- printf (22)
- round (19)
- rsqrt (4)
-
ruby 1
. 6 feature (11) -
ruby 1
. 9 feature (11) - sin (28)
- sin! (6)
- sinh (17)
- sinh! (6)
- sqrt (39)
- sqrt! (6)
- tan (17)
- tan! (6)
- tanh (17)
- tanh! (6)
- メソッド呼び出し(super・ブロック付き・yield) (11)
検索結果
先頭5件
-
NEWS for Ruby 2
. 4 . 0 (6.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...=== 実装の改善
* いくつかの条件で [x,y].max と [x,y].min が一時的な配列を生成しないよう最適化されました。
Math.max(x, y) と書くようなほとんどのカジュアルで実際にありそうなユースケースで効果があります。
具体的... -
Rake
:: FileList # include(*filenames) -> self (6.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
Random (6.0)
-
MT19937に基づく擬似乱数生成器を提供するクラスです。
...MT19937に基づく擬似乱数生成器を提供するクラスです。
=== 参考
オリジナル版 http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/mt.html... -
Range
# bsearch -> Enumerator (6.0) -
ブロックの評価結果で範囲内の各要素の大小判定を行い、条件を満たす値を二 分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を 返します。
...} # => 2
(0...ary.size).bsearch {|i| ary[i] >= 8 } # => 3
(0...ary.size).bsearch {|i| ary[i] >= 100 } # => nil
(0.0...Float::INFINITY).bsearch {|x| Math.log(x) >= 0 } # => 1.0
//}
find-any モードは bsearch(3) のように動作します。ブロックは真偽値
ではなく、以下のよう... -
Range
# bsearch {|obj| . . . } -> object | nil (6.0) -
ブロックの評価結果で範囲内の各要素の大小判定を行い、条件を満たす値を二 分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を 返します。
...} # => 2
(0...ary.size).bsearch {|i| ary[i] >= 8 } # => 3
(0...ary.size).bsearch {|i| ary[i] >= 100 } # => nil
(0.0...Float::INFINITY).bsearch {|x| Math.log(x) >= 0 } # => 1.0
//}
find-any モードは bsearch(3) のように動作します。ブロックは真偽値
ではなく、以下のよう... -
Vector
# angle _ with(v) -> Float (6.0) -
v と self がなす角度を返します。
...v と self がなす角度を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[1, 0].angle_with(Vector[0, 1]) # => Math::PI/2
//}
@param v このベクトルと self とがなす角度を計算します
@raise ZeroVectorError self もしくは v のどちらかが零ベクトルであ... -
irb (6.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...E_EOF] = true
IRB.conf[:IGNORE_SIGINT] = true
IRB.conf[:INSPECT_MODE] = nil
IRB.conf[:IRB_NAME] = "irb"
IRB.conf[:IRB_RC] = nil
IRB.conf[:MATH_MODE] = false
IRB.conf[:PROMPT] = {....}
IRB.conf[:PROMPT_MODE] = :DEFAULT
IRB.conf[:SINGLE_IRB] = false
IRB.conf[:SAVE_HISTORY] = nil
IR... -
main
. include(*modules) -> self (6.0) -
引数 modules で指定したモジュールを後ろから順番に Object にインクルードします。
...odules Module のインスタンス( Enumerable など)を指定します。
@raise ArgumentError 継承関係が循環してしまうような include を行った場
合に発生します。
//emlist[例:][ruby]{
include Math
hypot(3, 4) # => 5.0
//}
@see Module#include... -
メソッド呼び出し(super・ブロック付き・yield) (6.0)
-
メソッド呼び出し(super・ブロック付き・yield) * super * block * yield * block_arg * numbered_parameters * call_method
...出しま
す。
`.' と `::' とはほぼ同じ意味です。但し、定数を表す場合は、
`::' を使わなければいけません(例: Math::PI)。逆に、
//emlist[][ruby]{
Klass::Foo
//}
とした場合、常に定数と見なされるという制限があります。
`::' を、...