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: b95587ca4276311022b70f43467ee93dd4dc91008b0c2b6209773fa44020d608
4
- data.tar.gz: 0b0bbcc52b980817ae252104f4da298b80295f2513c8f2659141f4606456bb8b
3
+ metadata.gz: 9afea6caf50f7f5fb373b89cbb3014c57cfd14377db98462b681dbfe27e288d6
4
+ data.tar.gz: 27f3ebfbdf90fbce30895a10be0b34318be3f0e2eae23b66aaf14851e7fc6973
5
5
  SHA512:
6
- metadata.gz: cc27d828aca7556dd0719f04794632ed8a6ed7d855a6bf840c4835e4b56eede56174f4b4f3a81cde94763231cd50306954e729687d41035d762a317ce1e222aa
7
- data.tar.gz: 1ad28add251a800315f045a0057cfaf71949e060afa7bf2b2ecc244399df878c27607eaa9385a20b029d40aacd2426f03b47358a1d14c89d092f0d9c573d0c5e
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
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BigMathR
4
4
  # Module version.
5
- VERSION = "0.2.6"
5
+ VERSION = "0.2.7"
6
6
  end
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigdecimal-math_r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - tribusonz-2