ライブラリ
- ビルトイン (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件
-
Math
. # atanh(x) -> Float (21012.0) -
x の逆双曲線正接関数(area hyperbolic tangent)の値を返します。
...実数
@return 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外の実数を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#tanh... -
Math
. # erf(x) -> Float (21012.0) -
x の誤差関数(error function)の値を返します。
...関数(error function)の値を返します。
@param x 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
Math.erf(0) # => 0.0
//}
@see Math.#erfc... -
Math
. # erfc(x) -> Float (21012.0) -
x の相補誤差関数(complementary error function)の値を返します。
...lementary error function)の値を返します。
@param x 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
Math.erfc(0) # => 1.0
//}
@see Math.#erf... -
Math
. # ldexp(x , exp) -> Float (21012.0) -
実数 x に 2 の exp 乗をかけた数を返します。
...ror 引数のどちらかに数値以外を指定した場合に発生します。
@raise RangeError 引数のどちらかに実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
fraction, exponent = Math.frexp(1234)
Math.ldexp(fraction, exponent) # => 1234.0
//}... -
Math
. # asinh(x) -> Float (21006.0) -
x の逆双曲線正弦関数(area hyperbolic sine)の値を返します。
...ea hyperbolic sine)の値を返します。
=== 定義
asinh(x) = log(x + sqrt(x * x + 1))
@param x 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#sinh... -
Math
. # cosh(x) -> Float (21006.0) -
x の双曲線余弦関数(hyperbolic cosine)の値を返します。
...(hyperbolic cosine)の値を返します。
=== 定義
cosh(x) = (exp(x) + exp(-x)) / 2
@param x 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#acosh... -
Math
. # frexp(x) -> [Float , Integer] (21006.0) -
実数 x の仮数部と指数部の配列を返します。
...ypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
fraction, exponent = Math.frexp(1234) # => [0.6025390625, 11]
fraction * 2**exponent # => 1234.0
//}... -
Math
. # hypot(x , y) -> Float (21006.0) -
sqrt(x*x + y*y) を返します。
...です。
@param x 実数
@param y 実数
@raise TypeError 引数のどちらかに数値以外を指定した場合に発生します。
@raise RangeError 引数のどちらかに実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
Math.hypot(3, 4) #=> 5.0
//}... -
Math
. # sinh(x) -> Float (21006.0) -
x の双曲線正弦関数(hyperbolic sine)の値を返します。
...(hyperbolic sine)の値を返します。
=== 定義
sinh(x) = (exp(x) - exp(-x)) / 2
@param x 実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
@see Math.#asinh... -
Math
. # sqrt(a) -> Numeric (21006.0) -
@todo
...@todo
a の正の平方根を返します。
a が Complex の時は、Complex を返します。
a が負の時は、a を正にして、その平方根を Complex の虚数部に入れて返します。
それ以外は、Math.rsqrt の結果を返します。...