742件ヒット
[1-100件を表示]
(0.142秒)
ライブラリ
- ビルトイン (283)
- bigdecimal (132)
-
bigdecimal
/ math (48) - csv (12)
- json (168)
- matrix (36)
クラス
- Array (21)
- BigDecimal (108)
- Complex (24)
- Float (130)
-
JSON
:: Parser (12) -
JSON
:: State (48) - Matrix (24)
-
Matrix
:: LUPDecomposition (12) - String (48)
キーワード
- % (12)
- == (12)
-
EXCEPTION
_ ALL (12) -
EXCEPTION
_ NaN (12) - Float (12)
- FloatDomainError (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 2 . 0 (11) - NaN (12)
-
SIGN
_ NaN (12) -
allow
_ nan? (12) - angle (12)
- arg (12)
- atan (12)
- bigdecimal (12)
- cos (12)
- determinant (24)
-
determinant
_ e (12) - exp (12)
-
fast
_ generate (12) -
fast
_ unparse (12) - finite? (24)
- format (12)
- generate (12)
- inspect (24)
- load (12)
- log (36)
- mathn (4)
- mode (24)
- nan? (12)
- new (24)
-
next
_ float (11) - pack (21)
- pack テンプレート文字列 (12)
- parse (12)
- parse! (12)
-
parse
_ csv (12) - phase (12)
-
prev
_ float (11) - restore (12)
- sin (12)
- split (12)
- sprintf (12)
- sprintf フォーマット (12)
- sqrt (12)
-
to
_ f (12) -
to
_ h (12) -
to
_ hash (12) -
to
_ i (12) -
to
_ int (12) -
to
_ s (24) - unpack (12)
- unparse (12)
検索結果
先頭5件
-
Float
:: NAN -> Float (21223.0) -
浮動小数点数における NaN(Not a number)です。
...浮動小数点数における NaN(Not a number)です。
@see Float#nan?... -
BigDecimal
:: EXCEPTION _ NaN -> Integer (12217.0) -
BigDecimal の計算結果が NaN になった場合に例外を発生させるかどう かを設定、確認する際の値を返します。
...BigDecimal の計算結果が NaN になった場合に例外を発生させるかどう
かを設定、確認する際の値を返します。
BigDecimal.mode の第 1 引数に指定します。... -
Matrix
# determinant -> Numeric (9200.0) -
行列式 (determinant) の値を返します。
...行列式 (determinant) の値を返します。
Float を使用すると、精度が不足するため、誤った結果が生じる可能性があることに注意してください。
代わりに、Rational や BigDecimal などの正確なオブジェクトを使用することを検討し......てください。
@raise ExceptionForMatrix::ErrDimensionMismatch 正方行列でない場合に発生します
//emlist[例][ruby]{
require 'matrix'
p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1.0], [-1.0, 2.0]].det #=> 5.0
//}... -
Matrix
# determinant _ e -> Rational | Float (9200.0) -
このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。
...このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。... -
Matrix
:: LUPDecomposition # determinant -> Numeric (9200.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
...元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant... -
Float
# nan? -> bool (9147.0) -
数値が NaN(Not a number)のとき真を返します。
...数値が NaN(Not a number)のとき真を返します。
//emlist[例][ruby]{
nan = 0.0/0.0
p nan # => NaN
p nan.nan? # => true
//}... -
JSON
:: State # allow _ nan? -> bool (9135.0) -
NaN, Infinity, -Infinity を生成できる場合、真を返します。 そうでない場合は偽を返します。
...
NaN, Infinity, -Infinity を生成できる場合、真を返します。
そうでない場合は偽を返します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new({})
json_state.allow_nan? # => false
json_state = JSON::State.new(allow_nan: true)
json_state.allow_nan? # => tr... -
JSON
. # generate(object , state = nil) -> String (6224.0) -
与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。
...す。JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を生成することもありません。
unparse は将来削除される予定です。
@param object JSON 形式の文字列に変換するオブジェクトを指定します。
@param state JSON::State または、to_hash や to_h メソ......dent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
a string that is put after, a : or , delimiter (default: '')
: :space_before
a string that is put before a : pair delimiter (default: '')
: :object_nl
a string that is put at the......ct (default: '')
: :array_nl
a string that is put at the end of a JSON array (default: '')
: :check_circular
真を指定した場合、生成するオブジェクトの循環をチェックします。
この動作がデフォルトです。
: :allow_nan
真を指定した場合、JSON::NaN... -
BigDecimal
:: SIGN _ NaN -> Integer (6217.0) -
NaN に対応する BigDecimal#sign の値を返します。
...
NaN に対応する BigDecimal#sign の値を返します。...