bigdecimal-math_r 0.2.3 → 0.2.4
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 +4 -4
- data/ext/bigdecimal/math_r/const.c +8 -0
- data/lib/bigdecimal/math_r/version.rb +1 -1
- data/lib/bigdecimal/math_r.so +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd9842a0a845cf239eb182287ed671db8dfd738baec0049a984c912a1c02372
|
4
|
+
data.tar.gz: 951fa298fcc884ee15de3a44de5afba3e6adb101aa7fd82978fc9a51be5fabf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5db98fbdd47c19d497f406545516170f9c08bb82c85e65ecc519a260b0b3fc907217380504f6b168216faff7675f18cc43335abb2e0a1f7b0cb73794f4bb830
|
7
|
+
data.tar.gz: e9b886586aa56a0eeaf509cfc71207b00bbdc3d51bf47da80ebdc5b9932afeb63c62f2a8e54d0746b9d9fd549fa320ec916c88d8ba05685396e0015d7be509a7
|
@@ -54,6 +54,7 @@ __impl_const_e(VALUE unused_obj, VALUE prec)
|
|
54
54
|
return rb_bigmath_const_e(prec);
|
55
55
|
}
|
56
56
|
|
57
|
+
#if 0
|
57
58
|
/**
|
58
59
|
* The Euler-Mascheroni constant gamma.
|
59
60
|
* @example
|
@@ -68,6 +69,7 @@ __impl_const_euler_gamma(VALUE unused_obj, VALUE prec)
|
|
68
69
|
{
|
69
70
|
return rb_bigmath_const_euler_gamma(prec);
|
70
71
|
}
|
72
|
+
#endif
|
71
73
|
|
72
74
|
/**
|
73
75
|
* The natural logarithm of 2.
|
@@ -163,6 +165,7 @@ __impl_const_e_napier(VALUE unused_obj, VALUE prec)
|
|
163
165
|
return E_napier(prec);
|
164
166
|
}
|
165
167
|
|
168
|
+
#if 0
|
166
169
|
/**
|
167
170
|
* Implement by Borwein-Bailey's formula (Brent-McMillan type formula)
|
168
171
|
*
|
@@ -179,6 +182,7 @@ __impl_const_euler_gamma_borwein_bailey(VALUE unused_obj, VALUE prec)
|
|
179
182
|
{
|
180
183
|
return EulerGamma_borwein_bailey(prec);
|
181
184
|
}
|
185
|
+
#endif
|
182
186
|
|
183
187
|
/**
|
184
188
|
* Implement by BBP's formula (Borwein and Bailey 2002)
|
@@ -204,7 +208,9 @@ InitVM_Const(void)
|
|
204
208
|
{
|
205
209
|
rb_define_module_function(rb_mBigMathR, "PI", __impl_const_pi, 1);
|
206
210
|
rb_define_module_function(rb_mBigMathR, "E", __impl_const_e, 1);
|
211
|
+
#if 0
|
207
212
|
rb_define_module_function(rb_mBigMathR, "EulerGamma", __impl_const_euler_gamma, 1);
|
213
|
+
#endif
|
208
214
|
rb_define_module_function(rb_mBigMathR, "LOG2", __impl_const_log2, 1);
|
209
215
|
rb_define_module_function(rb_mBigMathR, "LOG_PI", __impl_const_log_pi, 1);
|
210
216
|
rb_define_module_function(rb_mBigMathR, "LOG10", __impl_const_log10, 1);
|
@@ -214,10 +220,12 @@ InitVM_Const(void)
|
|
214
220
|
rb_define_module_function(rb_mConstPI, "machin", __impl_const_pi_machin, 1);
|
215
221
|
rb_define_module_function(rb_mConstE, "napier", __impl_const_e_napier, 1);
|
216
222
|
rb_define_module_function(rb_mConstE, "euler_number", __impl_const_e_napier, 1);
|
223
|
+
#if 0
|
217
224
|
rb_define_module_function(rb_mConstEulerGamma, "borwein_bailey",
|
218
225
|
__impl_const_euler_gamma_borwein_bailey, 1);
|
219
226
|
rb_define_module_function(rb_mConstEulerGamma, "brent_mcmillan",
|
220
227
|
__impl_const_euler_gamma_borwein_bailey, 1);
|
228
|
+
#endif
|
221
229
|
rb_define_module_function(rb_mConstLOG2, "bbp2002", __impl_const_log2_bbp2002, 1);
|
222
230
|
}
|
223
231
|
|
data/lib/bigdecimal/math_r.so
CHANGED
Binary file
|