bigdecimal-math_r 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9afea6caf50f7f5fb373b89cbb3014c57cfd14377db98462b681dbfe27e288d6
|
4
|
+
data.tar.gz: 27f3ebfbdf90fbce30895a10be0b34318be3f0e2eae23b66aaf14851e7fc6973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b0492824d423b2673ff0c6faa70bb443ea92086b88b63a6791e02412e52e1cb6f6075815025724ad029d13da86ca85509bbeb8596694ae5c6c46093cc6f309f
|
7
|
+
data.tar.gz: 3916b4ad816aa0736561e22f9d56c522d07d97b5ebc089021254fd7dd40c8edc71a55f9a19784cf78be3d719ad8f3512d2546d79752da3100fb53287a5d1f059
|
data/changelog.md
CHANGED
@@ -7,6 +7,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.2.7] - 2025-10-XX
|
11
|
+
|
12
|
+
### Fix
|
13
|
+
- rcm2_edf(): Ignore Increase/Declease for exponent
|
14
|
+
|
15
|
+
### Added
|
16
|
+
- BigMathR#EulerGamma
|
17
|
+
- BigMathR::Const::EulerGamma#borwein_bailey
|
18
|
+
|
10
19
|
## [0.2.6] - 2025-10-XX
|
11
20
|
|
12
21
|
### Fix
|
@@ -54,7 +54,6 @@ __impl_const_e(VALUE unused_obj, VALUE prec)
|
|
54
54
|
return rb_bigmath_const_e(prec);
|
55
55
|
}
|
56
56
|
|
57
|
-
#if 0
|
58
57
|
/**
|
59
58
|
* The Euler-Mascheroni constant gamma.
|
60
59
|
* @example
|
@@ -69,7 +68,6 @@ __impl_const_euler_gamma(VALUE unused_obj, VALUE prec)
|
|
69
68
|
{
|
70
69
|
return rb_bigmath_const_euler_gamma(prec);
|
71
70
|
}
|
72
|
-
#endif
|
73
71
|
|
74
72
|
/**
|
75
73
|
* The natural logarithm of 2.
|
@@ -165,7 +163,6 @@ __impl_const_e_napier(VALUE unused_obj, VALUE prec)
|
|
165
163
|
return E_napier(prec);
|
166
164
|
}
|
167
165
|
|
168
|
-
#if 0
|
169
166
|
/**
|
170
167
|
* Implement by Borwein-Bailey's formula (Brent-McMillan type formula)
|
171
168
|
*
|
@@ -182,7 +179,6 @@ __impl_const_euler_gamma_borwein_bailey(VALUE unused_obj, VALUE prec)
|
|
182
179
|
{
|
183
180
|
return EulerGamma_borwein_bailey(prec);
|
184
181
|
}
|
185
|
-
#endif
|
186
182
|
|
187
183
|
/**
|
188
184
|
* Implement by BBP's formula (Borwein and Bailey 2002)
|
@@ -208,9 +204,7 @@ InitVM_Const(void)
|
|
208
204
|
{
|
209
205
|
rb_define_module_function(rb_mBigMathR, "PI", __impl_const_pi, 1);
|
210
206
|
rb_define_module_function(rb_mBigMathR, "E", __impl_const_e, 1);
|
211
|
-
#if 0
|
212
207
|
rb_define_module_function(rb_mBigMathR, "EulerGamma", __impl_const_euler_gamma, 1);
|
213
|
-
#endif
|
214
208
|
rb_define_module_function(rb_mBigMathR, "LOG2", __impl_const_log2, 1);
|
215
209
|
rb_define_module_function(rb_mBigMathR, "LOG_PI", __impl_const_log_pi, 1);
|
216
210
|
rb_define_module_function(rb_mBigMathR, "LOG10", __impl_const_log10, 1);
|
@@ -220,12 +214,10 @@ InitVM_Const(void)
|
|
220
214
|
rb_define_module_function(rb_mConstPI, "machin", __impl_const_pi_machin, 1);
|
221
215
|
rb_define_module_function(rb_mConstE, "napier", __impl_const_e_napier, 1);
|
222
216
|
rb_define_module_function(rb_mConstE, "euler_number", __impl_const_e_napier, 1);
|
223
|
-
#if 0
|
224
217
|
rb_define_module_function(rb_mConstEulerGamma, "borwein_bailey",
|
225
218
|
__impl_const_euler_gamma_borwein_bailey, 1);
|
226
219
|
rb_define_module_function(rb_mConstEulerGamma, "brent_mcmillan",
|
227
220
|
__impl_const_euler_gamma_borwein_bailey, 1);
|
228
|
-
#endif
|
229
221
|
rb_define_module_function(rb_mConstLOG2, "bbp2002", __impl_const_log2_bbp2002, 1);
|
230
222
|
}
|
231
223
|
|
@@ -19,7 +19,7 @@ rcm2_edf(VALUE x, VALUE *reso)
|
|
19
19
|
while (RTEST(rb_num_coerce_cmp(INT2FIX(2), fra, rb_intern("<="))))
|
20
20
|
{
|
21
21
|
fra = rb_funcall1(fra, '/', rat_two);
|
22
|
-
TYPE(resov) == T_FIXNUM ?
|
22
|
+
resov = TYPE(resov) == T_FIXNUM ?
|
23
23
|
LONG2FIX(FIX2LONG(resov) + 1) :
|
24
24
|
rb_funcall(resov, succ, 0);
|
25
25
|
}
|
@@ -29,7 +29,7 @@ rcm2_edf(VALUE x, VALUE *reso)
|
|
29
29
|
while (RTEST(rb_num_coerce_cmp(INT2FIX(1), fra, '>')))
|
30
30
|
{
|
31
31
|
fra = rb_funcall1(fra, '*', rat_two);
|
32
|
-
TYPE(resov) == T_FIXNUM ?
|
32
|
+
resov = TYPE(resov) == T_FIXNUM ?
|
33
33
|
LONG2FIX(FIX2LONG(resov) - 1) :
|
34
34
|
rb_funcall(resov, pred, 0);
|
35
35
|
}
|