1309件ヒット
[1-100件を表示]
(0.059秒)
キーワード
- % (11)
- * (11)
- ** (11)
- + (11)
- +@ (11)
- - (11)
- -@ (11)
-
/ (11) - < (11)
- <= (11)
- <=> (11)
- == (11)
- === (11)
- > (11)
- >= (11)
- BASE (11)
- BigDecimal (33)
- E (11)
-
EXCEPTION
_ ALL (11) -
EXCEPTION
_ INFINITY (11) -
EXCEPTION
_ NaN (11) -
EXCEPTION
_ OVERFLOW (11) -
EXCEPTION
_ UNDERFLOW (11) -
EXCEPTION
_ ZERODIVIDE (11) - INFINITY (11)
- LUSolve (11)
- NAN (11)
- PI (11)
-
ROUND
_ CEILING (11) -
ROUND
_ DOWN (11) -
ROUND
_ FLOOR (11) -
ROUND
_ HALF _ DOWN (11) -
ROUND
_ HALF _ EVEN (11) -
ROUND
_ HALF _ UP (11) -
ROUND
_ MODE (11) -
ROUND
_ UP (11) -
SIGN
_ NEGATIVE _ FINITE (11) -
SIGN
_ NEGATIVE _ INFINITE (11) -
SIGN
_ NEGATIVE _ ZERO (11) -
SIGN
_ NaN (11) -
SIGN
_ POSITIVE _ FINITE (11) -
SIGN
_ POSITIVE _ INFINITE (11) -
SIGN
_ POSITIVE _ ZERO (11) - VERSION (7)
-
_ dump (11) -
_ load (11) - abs (11)
- add (11)
- atan (11)
- ceil (22)
- clone (7)
- coerce (11)
- cos (11)
- div (22)
- divmod (11)
-
double
_ fig (11) - dup (7)
- eql? (11)
- exp (11)
- exponent (11)
- finite? (11)
- fix (11)
- floor (22)
- frac (11)
- hash (11)
- infinite? (11)
- inspect (11)
- isEqual (11)
- limit (11)
- log (11)
- ludecomp (11)
- lusolve (11)
- mode (22)
- modulo (11)
- mult (11)
- nan? (11)
- new (12)
- nlsolve (11)
- nonzero? (11)
- norm (11)
- power (22)
- precs (11)
- quo (11)
- remainder (11)
- round (33)
-
save
_ exception _ mode (11) -
save
_ limit (11) -
save
_ rounding _ mode (11) - sign (11)
- sin (11)
- split (11)
- sqrt (22)
- sub (11)
-
to
_ d (72) -
to
_ digits (11) -
to
_ f (11) -
to
_ i (11) -
to
_ int (11) -
to
_ r (11) -
to
_ s (22) - truncate (22)
- ver (5)
- zero? (11)
検索結果
先頭5件
-
LUSolve
. # ludecomp(a , n , zero = 0 , one = 1) -> [Integer] (9101.0) -
n 次正方行列を表す配列 a を破壊的に変更し、返り値と併せて元の行列の LU 分解を提供します。
...列を表す配列 a を破壊的に変更し、返り値と併せて元の行列の LU 分解を提供します。
LUSolve.#lusolve の引数を構築するために使います。
@param a 行列を BigDecimal の配列で指定します。(各要素を
Row-major order で 1 次元の... -
LUSolve
. # lusolve(a , b , ps , zero = 0 . 0) -> [BigDecimal] (9101.0) -
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求めて返します。
...
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求めて返します。
@param a 行列を BigDecimal の配列で指定します。
各要素を Row-major order で並べて 1 次元の配列にし、
LUSolve.#ludecomp で変換したものを指定します。......b ベクトルを BigDecimal の配列で指定します。
@param ps LUSolve.#ludecomp の返り値を指定します。
@param zero 0.0 を表す値を指定します。
//emlist[][ruby]{
require 'bigdecimal'
require 'bigdecimal/util'
require 'bigdecimal/ludcmp'
include LUSolve
a = [['1.0',......', '1.0']].flatten.map(&:to_d)
# x = ['1.0', -1.0']
b = ['-1.0', '2.0'].map(&:to_d)
zero = '0.0'.to_d
one = '1.0'.to_d
# 以下の 2 行は
ps = ludecomp(a, b.size, zero, one) # a が破壊的に変更される
x = lusolve(a, b, ps, zero)
# こう書いてもよい
# x = lusolve(a, b, ludecomp(a,... -
BigDecimal
# ceil -> Integer (6102.0) -
self 以上の整数のうち、最も小さい整数を計算し、その値を返します。
...self 以上の整数のうち、最も小さい整数を計算し、その値を返します。
@param n 小数点以下の桁数を整数で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").ceil # => 2
BigDecimal("-1.23456").ceil # => -1
//}
以下のように......桁にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").ceil(4).to_f # => 1.2346
BigDecimal("15.23456").ceil(-1).to_f # => 20.0
//}... -
BigDecimal
# ceil(n) -> BigDecimal (6102.0) -
self 以上の整数のうち、最も小さい整数を計算し、その値を返します。
...self 以上の整数のうち、最も小さい整数を計算し、その値を返します。
@param n 小数点以下の桁数を整数で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").ceil # => 2
BigDecimal("-1.23456").ceil # => -1
//}
以下のように......桁にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").ceil(4).to_f # => 1.2346
BigDecimal("15.23456").ceil(-1).to_f # => 20.0
//}... -
BigDecimal
# clone -> self (6102.0) -
self を返すように、BigDecimal で定義されています。
...self を返すように、BigDecimal で定義されています。... -
BigDecimal
# eql?(other) -> bool (6102.0) -
self が other と等しい場合に true を、そうでない場合に false を返します。
...self が other と等しい場合に true を、そうでない場合に false を返します。
それぞれの値は BigDecimal#coerce で変換して比較される場合があります。
//emlist[][ruby]{
require 'bigdecimal'
BigDecimal('1.0') == 1.0 # => true
//}... -
BigDecimal
# floor -> Integer (6102.0) -
self 以下の最大整数を返します。
...self 以下の最大整数を返します。
@param n 小数点以下の桁数を整数で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").floor # => 1
BigDecimal("-1.23456").floor # => -2
//}
以下のように引数 n を与えることもできます。
n >=......にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").floor(4).to_f # => 1.2345
BigDecimal("15.23456").floor(-1).to_f # => 10.0
//}... -
BigDecimal
# floor(n) -> BigDecimal (6102.0) -
self 以下の最大整数を返します。
...self 以下の最大整数を返します。
@param n 小数点以下の桁数を整数で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").floor # => 1
BigDecimal("-1.23456").floor # => -2
//}
以下のように引数 n を与えることもできます。
n >=......にします)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").floor(4).to_f # => 1.2345
BigDecimal("15.23456").floor(-1).to_f # => 10.0
//}... -
BigDecimal
# modulo(n) -> BigDecimal (6102.0) -
self を n で割った余りを返します。
...self を n で割った余りを返します。
@param n self を割る数を指定します。
//emlist[][ruby]{
require 'bigdecimal'
x = BigDecimal((2**100).to_s)
( x % 3).to_i # => 1
(-x % 3).to_i # => 2
( x % -3).to_i # => -2
(-x % -3).to_i # => -1
//}
戻り値は n と同じ符号にな......ります。これは BigDecimal#remainder とは
異なる点に注意してください。詳細は Numeric#%、
Numeric#remainder を参照して下さい。... -
BigDecimal
# mult(other , n) -> BigDecimal (6102.0) -
積を計算します。
...積を計算します。
self * other を最大で n 桁まで計算します。計算結果の精度が n より大きい
ときは BigDecimal.mode で指定された方法で丸められます。
@param other self に掛ける数を指定します。
@param n 有効桁数を整数で指定し......ます。0 を指定した場合は
BigDecimal#* と同じ値を返します。
@raise ArgumentError n に負の数を指定した場合に発生します。
@see BigDecimal#*...