724件ヒット
[701-724件を表示]
(0.020秒)
ライブラリ
- ビルトイン (396)
- benchmark (12)
- bigdecimal (48)
-
bigdecimal
/ newton (12) - cmath (240)
- mathn (4)
- objspace (12)
モジュール
キーワード
- BigDecimal (24)
- Float (12)
- acos (18)
- acos! (6)
- acosh (18)
- acosh! (6)
- asin (18)
- asin! (6)
- asinh (18)
- asinh! (6)
- atan (18)
- atan! (6)
- atan2 (18)
- atan2! (6)
- atanh (18)
- atanh! (6)
- cbrt (18)
- cbrt! (6)
-
clock
_ gettime (12) - cos (18)
- cos! (6)
- cosh (18)
- cosh! (6)
- erf (12)
- erfc (12)
- exp (30)
- exp! (6)
- format (12)
- frexp (12)
- gamma (12)
- hypot (12)
- ldexp (12)
- lgamma (12)
- log (48)
- log! (12)
- log10 (18)
- log10! (6)
- log2 (18)
- log2! (6)
- norm (12)
- rand (24)
-
reachable
_ objects _ from (12) - realtime (12)
- rsqrt (4)
- sin (18)
- sin! (6)
- sinh (18)
- sinh! (6)
- sprintf (12)
- sqrt (18)
- sqrt! (6)
- tan (18)
- tan! (6)
- tanh (18)
- tanh! (6)
検索結果
-
BigMath
. # log(x , prec) -> BigDecimal (107.0) -
x の自然対数を prec で指定した精度で計算します。
...指定した場合は無限大を返します。NaN を指定した場合には NaN
を返します。
@param x 計算対象の数値を Integer、Float、
Rational、BigDecimal オブジェクトのいずれかで指定
します。
@param prec 計算結果の精度を指定し......が指定された場合に発生します。
@raise ArgumentError prec に 0 以下の数値が指定された場合に発生します。
//emlist[][ruby]{
require "bigdecimal/math"
puts BigMath::log(BigDecimal('2'), 10) #=> 0.693147180559945309417232112588603776354688e0
//}... -
ObjectSpace
. # reachable _ objects _ from(obj) -> Array | nil (107.0) -
obj から到達可能なすべてのオブジェクトを返します。マーク不能なオブジェ クトを指定した場合は nil を返します。本メソッドを使う事でメモリリークの 調査が行えます。
...ます。
//emlist[例][ruby]{
# 配列クラス(Array)と 'a'、'b'、'c' に到達可能。
ObjectSpace.reachable_objects_from(['a', 'b', 'c'])
# => [Array, 'a', 'b', 'c']
//}
obj が 2 つ以上の同じオブジェクト x への参照を持つ場合、戻り値に含まれ
るオブジェク......# => [Array, 'a']
# 配列クラス(Array)と 3 つの異なる 'a' オブジェクトに到達可能。
ObjectSpace.reachable_objects_from(['a', 'a', 'a'])
# => [Array, 'a', 'a', 'a']
//}
obj にマーク不能なオブジェクト(true、false、nil、Symbol、
Fixnum、Flonum(即値の Float......ジェクト))を指定した場合は
nil を返します。
//emlist[例][ruby]{
# 1 はマーク不能
ObjectSpace.reachable_objects_from(1)
# => nil
//}
obj が内部でオブジェクトへの参照を持つ場合、
ObjectSpace::InternalObjectWrapper オブジェクトが戻り値に含ま...