long-decimal 0.01.01 → 0.01.02

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/README +17 -94
  2. data/VERSION +1 -1
  3. data/doc/classes/Integer.html +239 -0
  4. data/doc/classes/Integer.src/M000036.html +18 -0
  5. data/doc/classes/Integer.src/M000039.html +145 -0
  6. data/doc/classes/LongDecimal.html +453 -399
  7. data/doc/classes/LongDecimal.src/M000040.html +4 -4
  8. data/doc/classes/LongDecimal.src/M000041.html +4 -4
  9. data/doc/classes/LongDecimal.src/M000042.html +4 -6
  10. data/doc/classes/LongDecimal.src/M000043.html +4 -106
  11. data/doc/classes/LongDecimal.src/M000044.html +4 -21
  12. data/doc/classes/LongDecimal.src/M000045.html +4 -11
  13. data/doc/classes/LongDecimal.src/M000046.html +6 -27
  14. data/doc/classes/LongDecimal.src/M000047.html +103 -16
  15. data/doc/classes/LongDecimal.src/M000048.html +21 -4
  16. data/doc/classes/LongDecimal.src/M000049.html +10 -14
  17. data/doc/classes/LongDecimal.src/M000050.html +22 -36
  18. data/doc/classes/LongDecimal.src/M000051.html +34 -4
  19. data/doc/classes/LongDecimal.src/M000052.html +17 -6
  20. data/doc/classes/LongDecimal.src/M000053.html +4 -6
  21. data/doc/classes/LongDecimal.src/M000054.html +15 -4
  22. data/doc/classes/LongDecimal.src/M000055.html +44 -12
  23. data/doc/classes/LongDecimal.src/M000056.html +4 -7
  24. data/doc/classes/LongDecimal.src/M000057.html +8 -4
  25. data/doc/classes/LongDecimal.src/M000058.html +6 -15
  26. data/doc/classes/LongDecimal.src/M000059.html +4 -13
  27. data/doc/classes/LongDecimal.src/M000060.html +15 -4
  28. data/doc/classes/LongDecimal.src/M000061.html +7 -5
  29. data/doc/classes/LongDecimal.src/M000062.html +4 -4
  30. data/doc/classes/LongDecimal.src/M000063.html +15 -5
  31. data/doc/classes/LongDecimal.src/M000064.html +13 -5
  32. data/doc/classes/LongDecimal.src/M000065.html +4 -4
  33. data/doc/classes/LongDecimal.src/M000067.html +4 -8
  34. data/doc/classes/LongDecimal.src/M000068.html +5 -9
  35. data/doc/classes/LongDecimal.src/M000069.html +5 -9
  36. data/doc/classes/LongDecimal.src/M000070.html +4 -9
  37. data/doc/classes/LongDecimal.src/M000071.html +4 -4
  38. data/doc/classes/LongDecimal.src/M000072.html +6 -17
  39. data/doc/classes/LongDecimal.src/M000073.html +7 -7
  40. data/doc/classes/LongDecimal.src/M000074.html +7 -7
  41. data/doc/classes/LongDecimal.src/M000075.html +7 -19
  42. data/doc/classes/LongDecimal.src/M000076.html +4 -8
  43. data/doc/classes/LongDecimal.src/M000077.html +19 -5
  44. data/doc/classes/LongDecimal.src/M000078.html +7 -7
  45. data/doc/classes/LongDecimal.src/M000079.html +7 -7
  46. data/doc/classes/LongDecimal.src/M000080.html +19 -7
  47. data/doc/classes/LongDecimal.src/M000081.html +8 -4
  48. data/doc/classes/LongDecimal.src/M000082.html +5 -7
  49. data/doc/classes/LongDecimal.src/M000083.html +8 -6
  50. data/doc/classes/LongDecimal.src/M000084.html +9 -4
  51. data/doc/classes/LongDecimal.src/M000085.html +9 -4
  52. data/doc/classes/LongDecimal.src/M000086.html +4 -9
  53. data/doc/classes/LongDecimal.src/M000087.html +6 -8
  54. data/doc/classes/LongDecimal.src/M000088.html +7 -5
  55. data/doc/classes/LongDecimal.src/M000089.html +4 -9
  56. data/doc/classes/LongDecimal.src/M000090.html +4 -4
  57. data/doc/classes/LongDecimal.src/M000091.html +9 -4
  58. data/doc/classes/LongDecimal.src/M000092.html +9 -4
  59. data/doc/classes/LongDecimal.src/M000093.html +5 -4
  60. data/doc/classes/LongDecimal.src/M000094.html +7 -57
  61. data/doc/classes/LongDecimal.src/M000095.html +4 -4
  62. data/doc/classes/LongDecimal.src/M000096.html +4 -4
  63. data/doc/classes/LongDecimal.src/M000097.html +4 -5
  64. data/doc/classes/LongDecimal.src/M000098.html +4 -5
  65. data/doc/classes/LongDecimal.src/M000099.html +59 -5
  66. data/doc/classes/LongDecimal.src/M000100.html +4 -5
  67. data/doc/classes/LongDecimal.src/M000101.html +4 -4
  68. data/doc/classes/LongDecimal.src/M000104.html +19 -0
  69. data/doc/classes/LongDecimal.src/M000105.html +19 -0
  70. data/doc/classes/LongDecimal.src/M000106.html +18 -0
  71. data/doc/classes/LongDecimal.src/M000107.html +18 -0
  72. data/doc/classes/LongDecimal.src/M000108.html +18 -0
  73. data/doc/classes/LongDecimal.src/M000109.html +18 -0
  74. data/doc/classes/LongDecimalBase.html +69 -66
  75. data/doc/classes/LongDecimalBase.src/M000113.html +4 -9
  76. data/doc/classes/LongDecimalBase.src/M000114.html +4 -5
  77. data/doc/classes/LongDecimalBase.src/M000115.html +4 -9
  78. data/doc/classes/LongDecimalBase.src/M000116.html +4 -9
  79. data/doc/classes/LongDecimalBase.src/M000117.html +4 -5
  80. data/doc/classes/LongDecimalBase.src/M000118.html +23 -0
  81. data/doc/classes/LongDecimalBase.src/M000121.html +23 -0
  82. data/doc/classes/LongDecimalBase.src/M000122.html +19 -0
  83. data/doc/classes/LongDecimalBase.src/M000123.html +18 -0
  84. data/doc/classes/LongDecimalQuot.html +33 -27
  85. data/doc/classes/LongDecimalQuot.src/M000003.html +1 -1
  86. data/doc/classes/LongDecimalQuot.src/M000004.html +1 -1
  87. data/doc/classes/LongDecimalQuot.src/M000005.html +1 -1
  88. data/doc/classes/LongDecimalQuot.src/M000006.html +1 -1
  89. data/doc/classes/LongDecimalQuot.src/M000007.html +1 -1
  90. data/doc/classes/LongDecimalQuot.src/M000008.html +1 -1
  91. data/doc/classes/LongDecimalQuot.src/M000009.html +1 -1
  92. data/doc/classes/LongDecimalQuot.src/M000010.html +1 -1
  93. data/doc/classes/LongDecimalQuot.src/M000011.html +1 -1
  94. data/doc/classes/LongDecimalQuot.src/M000012.html +1 -1
  95. data/doc/classes/LongDecimalQuot.src/M000013.html +1 -1
  96. data/doc/classes/LongDecimalQuot.src/M000014.html +1 -1
  97. data/doc/classes/LongDecimalQuot.src/M000015.html +1 -1
  98. data/doc/classes/LongDecimalQuot.src/M000016.html +1 -1
  99. data/doc/classes/LongDecimalQuot.src/M000017.html +1 -1
  100. data/doc/classes/LongDecimalQuot.src/M000018.html +1 -1
  101. data/doc/classes/LongDecimalQuot.src/M000019.html +1 -1
  102. data/doc/classes/LongDecimalQuot.src/M000020.html +1 -1
  103. data/doc/classes/LongDecimalQuot.src/M000021.html +1 -1
  104. data/doc/classes/LongDecimalQuot.src/M000022.html +1 -1
  105. data/doc/classes/LongDecimalQuot.src/M000023.html +1 -1
  106. data/doc/classes/LongDecimalQuot.src/M000024.html +1 -1
  107. data/doc/classes/LongDecimalQuot.src/M000025.html +1 -1
  108. data/doc/classes/LongDecimalQuot.src/M000026.html +1 -1
  109. data/doc/classes/LongDecimalQuot.src/M000027.html +1 -1
  110. data/doc/classes/LongDecimalQuot.src/M000028.html +1 -1
  111. data/doc/classes/LongDecimalQuot.src/M000029.html +1 -1
  112. data/doc/classes/LongDecimalQuot.src/M000030.html +1 -1
  113. data/doc/classes/LongDecimalQuot.src/M000031.html +1 -1
  114. data/doc/classes/LongDecimalQuot.src/M000034.html +1 -1
  115. data/doc/classes/LongDecimalQuot.src/M000035.html +1 -1
  116. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.html +25 -24
  117. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000156.html +22 -0
  118. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000157.html +18 -0
  119. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000158.html +18 -0
  120. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000159.html +18 -0
  121. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000161.html +25 -0
  122. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000162.html +18 -0
  123. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000163.html +18 -0
  124. data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000164.html +18 -0
  125. data/doc/classes/LongDecimalRoundingMode/ZeroRoundingModeClass.html +178 -0
  126. data/doc/classes/LongDecimalRoundingMode/ZeroRoundingModeClass.src/M000165.html +25 -0
  127. data/doc/classes/LongDecimalRoundingMode/ZeroRoundingModeClass.src/M000166.html +18 -0
  128. data/doc/classes/LongDecimalRoundingMode.html +41 -4
  129. data/doc/classes/LongMath/CacheKey.html +10 -10
  130. data/doc/classes/LongMath/CacheKey.src/M000155.html +36 -0
  131. data/doc/classes/LongMath/CacheKey.src/M000160.html +36 -0
  132. data/doc/classes/LongMath.html +246 -235
  133. data/doc/classes/LongMath.src/M000124.html +5 -18
  134. data/doc/classes/LongMath.src/M000125.html +4 -18
  135. data/doc/classes/LongMath.src/M000126.html +4 -5
  136. data/doc/classes/LongMath.src/M000127.html +5 -29
  137. data/doc/classes/LongMath.src/M000128.html +4 -5
  138. data/doc/classes/LongMath.src/M000129.html +14 -53
  139. data/doc/classes/LongMath.src/M000130.html +17 -20
  140. data/doc/classes/LongMath.src/M000131.html +5 -36
  141. data/doc/classes/LongMath.src/M000132.html +29 -6
  142. data/doc/classes/LongMath.src/M000133.html +5 -33
  143. data/doc/classes/LongMath.src/M000134.html +47 -41
  144. data/doc/classes/LongMath.src/M000135.html +21 -7
  145. data/doc/classes/LongMath.src/M000136.html +36 -4
  146. data/doc/classes/LongMath.src/M000137.html +6 -4
  147. data/doc/classes/LongMath.src/M000138.html +31 -70
  148. data/doc/classes/LongMath.src/M000139.html +45 -38
  149. data/doc/classes/LongMath.src/M000140.html +7 -4
  150. data/doc/classes/LongMath.src/M000141.html +4 -4
  151. data/doc/classes/LongMath.src/M000142.html +4 -6
  152. data/doc/classes/LongMath.src/M000143.html +67 -14
  153. data/doc/classes/LongMath.src/M000144.html +39 -14
  154. data/doc/classes/LongMath.src/M000145.html +4 -44
  155. data/doc/classes/LongMath.src/M000146.html +5 -339
  156. data/doc/classes/LongMath.src/M000147.html +6 -25
  157. data/doc/classes/LongMath.src/M000148.html +14 -75
  158. data/doc/classes/LongMath.src/M000149.html +33 -0
  159. data/doc/classes/LongMath.src/M000150.html +58 -0
  160. data/doc/classes/LongMath.src/M000151.html +406 -0
  161. data/doc/classes/LongMath.src/M000152.html +63 -0
  162. data/doc/classes/LongMath.src/M000153.html +117 -0
  163. data/doc/classes/LongMath.src/M000154.html +150 -0
  164. data/doc/classes/LongMath.src/M000155.html +63 -0
  165. data/doc/classes/LongMath.src/M000156.html +18 -0
  166. data/doc/classes/LongMath.src/M000157.html +19 -0
  167. data/doc/classes/LongMath.src/M000158.html +18 -0
  168. data/doc/classes/LongMath.src/M000159.html +19 -0
  169. data/doc/classes/Numeric.html +23 -21
  170. data/doc/classes/Numeric.src/M000106.html +18 -0
  171. data/doc/classes/Numeric.src/M000110.html +23 -0
  172. data/doc/classes/Numeric.src/M000111.html +18 -0
  173. data/doc/classes/Rational.html +18 -16
  174. data/doc/classes/Rational.src/M000107.html +23 -0
  175. data/doc/classes/Rational.src/M000112.html +23 -0
  176. data/doc/created.rid +1 -1
  177. data/doc/dot/f_0.dot +23 -1
  178. data/doc/dot/f_0.png +0 -0
  179. data/doc/dot/m_0_0.png +0 -0
  180. data/doc/dot/m_0_1.dot +13 -0
  181. data/doc/dot/m_0_1.png +0 -0
  182. data/doc/files/lib/long-decimal_rb.html +15 -13
  183. data/doc/files/lib/long-decimal_rb.src/M000001.html +1 -1
  184. data/doc/files/lib/long-decimal_rb.src/M000002.html +1 -1
  185. data/doc/fr_class_index.html +2 -0
  186. data/doc/fr_method_index.html +131 -124
  187. data/lib/long-decimal.rb +373 -49
  188. data/test/testlongdecimal.rb +689 -7
  189. data/test/testlongdeclib.rb +51 -11
  190. data/test/testrandlib.rb +23 -7
  191. data/test/testrandom.rb +4 -4
  192. data/test/testrandpower.rb +11 -9
  193. metadata +48 -3
@@ -73,12 +73,12 @@
73
73
  <div id="contextContent">
74
74
  <div id="diagram">
75
75
  <map id="map" name="map">
76
- <area shape="RECT" coords="5,6,85,54" href="Comparable.html" alt="Comparable">
77
- <area shape="RECT" coords="43,102,123,150" href="LongMath/CacheKey.html" alt="CacheKey">
78
- <area shape="RECT" coords="109,6,264,54" href="LongDecimalRoundingMode.html" alt="LongDecimalRoundingMode">
79
- <area shape="RECT" coords="32,68,160,160" href="LongMath.html" alt="LongMath">
76
+ <area shape="rect" coords="7,7,84,55" href="Comparable.html" alt="Comparable" />
77
+ <area shape="rect" coords="44,103,122,151" href="LongMath/CacheKey.html" alt="CacheKey" />
78
+ <area shape="rect" coords="108,7,260,55" href="LongDecimalRoundingMode.html" alt="LongDecimalRoundingMode" />
79
+ <area shape="rect" coords="34,69,159,161" href="LongMath.html" alt="LongMath" />
80
80
  </map>
81
- <img src="../dot/m_0_0.png" usemap="#map" border=0 alt="Module: LongMath">
81
+ <img src="../dot/m_0_0.png" usemap="#map" border="0" alt="dot/m_0_0.png">
82
82
  </div>
83
83
 
84
84
  <div id="description">
@@ -101,42 +101,42 @@ href="LongDecimal.html">LongDecimal</a> instead of Float.
101
101
  <h3 class="section-bar">Methods</h3>
102
102
 
103
103
  <div class="name-list">
104
- <a href="#M000147">calc_iprec_for_power</a>&nbsp;&nbsp;
105
- <a href="#M000120">check_is_int</a>&nbsp;&nbsp;
106
- <a href="#M000121">check_is_ld</a>&nbsp;&nbsp;
107
- <a href="#M000123">check_is_mode</a>&nbsp;&nbsp;
108
- <a href="#M000122">check_is_prec</a>&nbsp;&nbsp;
109
- <a href="#M000119">check_word_len</a>&nbsp;&nbsp;
110
- <a href="#M000135">exp</a>&nbsp;&nbsp;
111
- <a href="#M000137">exp10</a>&nbsp;&nbsp;
112
- <a href="#M000136">exp2</a>&nbsp;&nbsp;
113
- <a href="#M000138">exp_internal</a>&nbsp;&nbsp;
114
- <a href="#M000139">exp_raw</a>&nbsp;&nbsp;
115
- <a href="#M000130">gcd_with_high_power</a>&nbsp;&nbsp;
116
- <a href="#M000133">int_digits10</a>&nbsp;&nbsp;
117
- <a href="#M000149">ipower</a>&nbsp;&nbsp;
118
- <a href="#M000142">log</a>&nbsp;&nbsp;
119
- <a href="#M000143">log10</a>&nbsp;&nbsp;
120
- <a href="#M000144">log2</a>&nbsp;&nbsp;
121
- <a href="#M000145">log_internal</a>&nbsp;&nbsp;
122
- <a href="#M000146">log_raw</a>&nbsp;&nbsp;
123
- <a href="#M000125">merge_from_words</a>&nbsp;&nbsp;
124
- <a href="#M000132">multiplicity_of_10</a>&nbsp;&nbsp;
125
- <a href="#M000131">multiplicity_of_factor</a>&nbsp;&nbsp;
126
- <a href="#M000134">pi</a>&nbsp;&nbsp;
127
- <a href="#M000148">power</a>&nbsp;&nbsp;
128
- <a href="#M000150">power_internal</a>&nbsp;&nbsp;
129
- <a href="#M000124">split_to_words</a>&nbsp;&nbsp;
130
- <a href="#M000140">sqrt</a>&nbsp;&nbsp;
131
- <a href="#M000141">sqrt_with_remainder</a>&nbsp;&nbsp;
132
- <a href="#M000126">sqrtb</a>&nbsp;&nbsp;
133
- <a href="#M000127">sqrtb_with_remainder</a>&nbsp;&nbsp;
134
- <a href="#M000128">sqrtw</a>&nbsp;&nbsp;
135
- <a href="#M000129">sqrtw_with_remainder</a>&nbsp;&nbsp;
136
- <a href="#M000153">standard_imode</a>&nbsp;&nbsp;
137
- <a href="#M000154">standard_imode=</a>&nbsp;&nbsp;
138
- <a href="#M000151">standard_mode</a>&nbsp;&nbsp;
139
- <a href="#M000152">standard_mode=</a>&nbsp;&nbsp;
104
+ <a href="#M000152">calc_iprec_for_power</a>&nbsp;&nbsp;
105
+ <a href="#M000125">check_is_int</a>&nbsp;&nbsp;
106
+ <a href="#M000126">check_is_ld</a>&nbsp;&nbsp;
107
+ <a href="#M000128">check_is_mode</a>&nbsp;&nbsp;
108
+ <a href="#M000127">check_is_prec</a>&nbsp;&nbsp;
109
+ <a href="#M000124">check_word_len</a>&nbsp;&nbsp;
110
+ <a href="#M000140">exp</a>&nbsp;&nbsp;
111
+ <a href="#M000142">exp10</a>&nbsp;&nbsp;
112
+ <a href="#M000141">exp2</a>&nbsp;&nbsp;
113
+ <a href="#M000143">exp_internal</a>&nbsp;&nbsp;
114
+ <a href="#M000144">exp_raw</a>&nbsp;&nbsp;
115
+ <a href="#M000135">gcd_with_high_power</a>&nbsp;&nbsp;
116
+ <a href="#M000138">int_digits10</a>&nbsp;&nbsp;
117
+ <a href="#M000154">ipower</a>&nbsp;&nbsp;
118
+ <a href="#M000147">log</a>&nbsp;&nbsp;
119
+ <a href="#M000148">log10</a>&nbsp;&nbsp;
120
+ <a href="#M000149">log2</a>&nbsp;&nbsp;
121
+ <a href="#M000150">log_internal</a>&nbsp;&nbsp;
122
+ <a href="#M000151">log_raw</a>&nbsp;&nbsp;
123
+ <a href="#M000130">merge_from_words</a>&nbsp;&nbsp;
124
+ <a href="#M000137">multiplicity_of_10</a>&nbsp;&nbsp;
125
+ <a href="#M000136">multiplicity_of_factor</a>&nbsp;&nbsp;
126
+ <a href="#M000139">pi</a>&nbsp;&nbsp;
127
+ <a href="#M000153">power</a>&nbsp;&nbsp;
128
+ <a href="#M000155">power_internal</a>&nbsp;&nbsp;
129
+ <a href="#M000129">split_to_words</a>&nbsp;&nbsp;
130
+ <a href="#M000145">sqrt</a>&nbsp;&nbsp;
131
+ <a href="#M000146">sqrt_with_remainder</a>&nbsp;&nbsp;
132
+ <a href="#M000131">sqrtb</a>&nbsp;&nbsp;
133
+ <a href="#M000132">sqrtb_with_remainder</a>&nbsp;&nbsp;
134
+ <a href="#M000133">sqrtw</a>&nbsp;&nbsp;
135
+ <a href="#M000134">sqrtw_with_remainder</a>&nbsp;&nbsp;
136
+ <a href="#M000158">standard_imode</a>&nbsp;&nbsp;
137
+ <a href="#M000159">standard_imode=</a>&nbsp;&nbsp;
138
+ <a href="#M000156">standard_mode</a>&nbsp;&nbsp;
139
+ <a href="#M000157">standard_mode=</a>&nbsp;&nbsp;
140
140
  </div>
141
141
  </div>
142
142
 
@@ -209,46 +209,48 @@ href="LongDecimal.html">LongDecimal</a> instead of Float.
209
209
  <div id="methods">
210
210
  <h3 class="section-bar">Public Class methods</h3>
211
211
 
212
- <div id="method-M000147" class="method-detail">
213
- <a name="M000147"></a>
212
+ <div id="method-M000152" class="method-detail">
213
+ <a name="M000152"></a>
214
214
 
215
215
  <div class="method-heading">
216
- <a href="LongMath.src/M000147.html" target="Code" class="method-signature"
217
- onclick="popupCode('LongMath.src/M000147.html');return false;">
216
+ <a href="LongMath.src/M000152.html" target="Code" class="method-signature"
217
+ onclick="popupCode('LongMath.src/M000152.html');return false;">
218
218
  <span class="method-name">calc_iprec_for_power</span><span class="method-args">(x, y, prec)</span>
219
219
  </a>
220
220
  </div>
221
221
 
222
222
  <div class="method-description">
223
223
  <p>
224
- internal helper method for calculating the internal precision for power
224
+ internal helper method for calculating the internal precision for <a
225
+ href="LongMath.html#M000153">power</a>
225
226
  </p>
226
227
  </div>
227
228
  </div>
228
229
 
229
- <div id="method-M000120" class="method-detail">
230
- <a name="M000120"></a>
230
+ <div id="method-M000125" class="method-detail">
231
+ <a name="M000125"></a>
231
232
 
232
233
  <div class="method-heading">
233
- <a href="LongMath.src/M000120.html" target="Code" class="method-signature"
234
- onclick="popupCode('LongMath.src/M000120.html');return false;">
234
+ <a href="LongMath.src/M000125.html" target="Code" class="method-signature"
235
+ onclick="popupCode('LongMath.src/M000125.html');return false;">
235
236
  <span class="method-name">check_is_int</span><span class="method-args">(x, name=&quot;x&quot;)</span>
236
237
  </a>
237
238
  </div>
238
239
 
239
240
  <div class="method-description">
240
241
  <p>
241
- helper method for internal use: checks if parameter x is an Integer
242
+ helper method for internal use: checks if parameter x is an <a
243
+ href="Integer.html">Integer</a>
242
244
  </p>
243
245
  </div>
244
246
  </div>
245
247
 
246
- <div id="method-M000121" class="method-detail">
247
- <a name="M000121"></a>
248
+ <div id="method-M000126" class="method-detail">
249
+ <a name="M000126"></a>
248
250
 
249
251
  <div class="method-heading">
250
- <a href="LongMath.src/M000121.html" target="Code" class="method-signature"
251
- onclick="popupCode('LongMath.src/M000121.html');return false;">
252
+ <a href="LongMath.src/M000126.html" target="Code" class="method-signature"
253
+ onclick="popupCode('LongMath.src/M000126.html');return false;">
252
254
  <span class="method-name">check_is_ld</span><span class="method-args">(x, name=&quot;x&quot;)</span>
253
255
  </a>
254
256
  </div>
@@ -261,12 +263,12 @@ href="LongDecimal.html">LongDecimal</a>
261
263
  </div>
262
264
  </div>
263
265
 
264
- <div id="method-M000123" class="method-detail">
265
- <a name="M000123"></a>
266
+ <div id="method-M000128" class="method-detail">
267
+ <a name="M000128"></a>
266
268
 
267
269
  <div class="method-heading">
268
- <a href="LongMath.src/M000123.html" target="Code" class="method-signature"
269
- onclick="popupCode('LongMath.src/M000123.html');return false;">
270
+ <a href="LongMath.src/M000128.html" target="Code" class="method-signature"
271
+ onclick="popupCode('LongMath.src/M000128.html');return false;">
270
272
  <span class="method-name">check_is_mode</span><span class="method-args">(mode, name=&quot;mode&quot;)</span>
271
273
  </a>
272
274
  </div>
@@ -279,12 +281,12 @@ helper method for internal use: checks if parameter x is a rounding mode
279
281
  </div>
280
282
  </div>
281
283
 
282
- <div id="method-M000122" class="method-detail">
283
- <a name="M000122"></a>
284
+ <div id="method-M000127" class="method-detail">
285
+ <a name="M000127"></a>
284
286
 
285
287
  <div class="method-heading">
286
- <a href="LongMath.src/M000122.html" target="Code" class="method-signature"
287
- onclick="popupCode('LongMath.src/M000122.html');return false;">
288
+ <a href="LongMath.src/M000127.html" target="Code" class="method-signature"
289
+ onclick="popupCode('LongMath.src/M000127.html');return false;">
288
290
  <span class="method-name">check_is_prec</span><span class="method-args">(prec, name=&quot;prec&quot;)</span>
289
291
  </a>
290
292
  </div>
@@ -297,12 +299,12 @@ for the precision (scale) of a <a href="LongDecimal.html">LongDecimal</a>
297
299
  </div>
298
300
  </div>
299
301
 
300
- <div id="method-M000119" class="method-detail">
301
- <a name="M000119"></a>
302
+ <div id="method-M000124" class="method-detail">
303
+ <a name="M000124"></a>
302
304
 
303
305
  <div class="method-heading">
304
- <a href="LongMath.src/M000119.html" target="Code" class="method-signature"
305
- onclick="popupCode('LongMath.src/M000119.html');return false;">
306
+ <a href="LongMath.src/M000124.html" target="Code" class="method-signature"
307
+ onclick="popupCode('LongMath.src/M000124.html');return false;">
306
308
  <span class="method-name">check_word_len</span><span class="method-args">(word_len, name=&quot;word_len&quot;)</span>
307
309
  </a>
308
310
  </div>
@@ -315,12 +317,12 @@ splitting a number into parts
315
317
  </div>
316
318
  </div>
317
319
 
318
- <div id="method-M000135" class="method-detail">
319
- <a name="M000135"></a>
320
+ <div id="method-M000140" class="method-detail">
321
+ <a name="M000140"></a>
320
322
 
321
323
  <div class="method-heading">
322
- <a href="LongMath.src/M000135.html" target="Code" class="method-signature"
323
- onclick="popupCode('LongMath.src/M000135.html');return false;">
324
+ <a href="LongMath.src/M000140.html" target="Code" class="method-signature"
325
+ onclick="popupCode('LongMath.src/M000140.html');return false;">
324
326
  <span class="method-name">exp</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
325
327
  </a>
326
328
  </div>
@@ -337,12 +339,12 @@ future versions.
337
339
  </div>
338
340
  </div>
339
341
 
340
- <div id="method-M000137" class="method-detail">
341
- <a name="M000137"></a>
342
+ <div id="method-M000142" class="method-detail">
343
+ <a name="M000142"></a>
342
344
 
343
345
  <div class="method-heading">
344
- <a href="LongMath.src/M000137.html" target="Code" class="method-signature"
345
- onclick="popupCode('LongMath.src/M000137.html');return false;">
346
+ <a href="LongMath.src/M000142.html" target="Code" class="method-signature"
347
+ onclick="popupCode('LongMath.src/M000142.html');return false;">
346
348
  <span class="method-name">exp10</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
347
349
  </a>
348
350
  </div>
@@ -358,12 +360,12 @@ with the exponential function that exceed the memory.
358
360
  </div>
359
361
  </div>
360
362
 
361
- <div id="method-M000136" class="method-detail">
362
- <a name="M000136"></a>
363
+ <div id="method-M000141" class="method-detail">
364
+ <a name="M000141"></a>
363
365
 
364
366
  <div class="method-heading">
365
- <a href="LongMath.src/M000136.html" target="Code" class="method-signature"
366
- onclick="popupCode('LongMath.src/M000136.html');return false;">
367
+ <a href="LongMath.src/M000141.html" target="Code" class="method-signature"
368
+ onclick="popupCode('LongMath.src/M000141.html');return false;">
367
369
  <span class="method-name">exp2</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
368
370
  </a>
369
371
  </div>
@@ -379,68 +381,71 @@ with the exponential function that exceed the memory.
379
381
  </div>
380
382
  </div>
381
383
 
382
- <div id="method-M000138" class="method-detail">
383
- <a name="M000138"></a>
384
+ <div id="method-M000143" class="method-detail">
385
+ <a name="M000143"></a>
384
386
 
385
387
  <div class="method-heading">
386
- <a href="LongMath.src/M000138.html" target="Code" class="method-signature"
387
- onclick="popupCode('LongMath.src/M000138.html');return false;">
388
+ <a href="LongMath.src/M000143.html" target="Code" class="method-signature"
389
+ onclick="popupCode('LongMath.src/M000143.html');return false;">
388
390
  <span class="method-name">exp_internal</span><span class="method-args">(x, prec = nil, final_mode = LongMath.standard_mode, j = nil, k = nil, iprec = nil, mode = LongMath.standard_imode, cache_result = true)</span>
389
391
  </a>
390
392
  </div>
391
393
 
392
394
  <div class="method-description">
393
395
  <p>
394
- internal functionality of exp. exposes some more parameters, that should
395
- usually be set to defaut values, in order to allow better testing. do not
396
- actually call this method unless you are testing exp. create a bug report,
397
- if the default settings for the parameters do not work correctly
396
+ internal functionality of <a href="LongMath.html#M000140">exp</a>. exposes
397
+ some more parameters, that should usually be set to defaut values, in order
398
+ to allow better testing. do not actually call this method unless you are
399
+ testing <a href="LongMath.html#M000140">exp</a>. create a bug report, if
400
+ the default settings for the parameters do not work correctly
398
401
  </p>
399
402
  </div>
400
403
  </div>
401
404
 
402
- <div id="method-M000139" class="method-detail">
403
- <a name="M000139"></a>
405
+ <div id="method-M000144" class="method-detail">
406
+ <a name="M000144"></a>
404
407
 
405
408
  <div class="method-heading">
406
- <a href="LongMath.src/M000139.html" target="Code" class="method-signature"
407
- onclick="popupCode('LongMath.src/M000139.html');return false;">
409
+ <a href="LongMath.src/M000144.html" target="Code" class="method-signature"
410
+ onclick="popupCode('LongMath.src/M000144.html');return false;">
408
411
  <span class="method-name">exp_raw</span><span class="method-args">(x, prec, j, k, iprec, mode)</span>
409
412
  </a>
410
413
  </div>
411
414
 
412
415
  <div class="method-description">
413
416
  <p>
414
- calculation of exp(x) with precision used internally. Needs to be rounded
415
- to be accurate to all digits that are provided.
417
+ calculation of <a href="LongMath.html#M000140">exp</a>(x) with precision
418
+ used internally. Needs to be rounded to be accurate to all digits that are
419
+ provided.
416
420
  </p>
417
421
  </div>
418
422
  </div>
419
423
 
420
- <div id="method-M000130" class="method-detail">
421
- <a name="M000130"></a>
424
+ <div id="method-M000135" class="method-detail">
425
+ <a name="M000135"></a>
422
426
 
423
427
  <div class="method-heading">
424
- <a href="LongMath.src/M000130.html" target="Code" class="method-signature"
425
- onclick="popupCode('LongMath.src/M000130.html');return false;">
428
+ <a href="LongMath.src/M000135.html" target="Code" class="method-signature"
429
+ onclick="popupCode('LongMath.src/M000135.html');return false;">
426
430
  <span class="method-name">gcd_with_high_power</span><span class="method-args">(x, b)</span>
427
431
  </a>
428
432
  </div>
429
433
 
430
434
  <div class="method-description">
431
435
  <p>
432
- find the gcd of an Integer x with b**n0 where n0 is a sufficiently high
433
- exponent such that gcd(x, b**m) = gcd(x, b**n) for all m, n &gt;= n0
436
+ find the gcd of an <a href="Integer.html">Integer</a> x with b**n0 where n0
437
+ is a sufficiently high exponent such that gcd(x, b**m) = gcd(x, b**n) for
438
+ all m, n &gt;= n0
434
439
  </p>
435
440
  </div>
436
441
  </div>
437
442
 
438
- <div id="method-M000133" class="method-detail">
439
- <a name="M000133"></a>
443
+ <div id="method-M000138" class="method-detail">
444
+ <a name="M000138"></a>
440
445
 
441
446
  <div class="method-heading">
442
- <a href="LongMath.src/M000133.html" target="Code" class="method-signature"
443
- onclick="popupCode('LongMath.src/M000133.html');return false;">
447
+ <a href="LongMath.src/M000138.html" target="Code" class="method-signature"
448
+ onclick="popupCode('LongMath.src/M000138.html');return false;">
444
449
  <span class="method-name">int_digits10</span><span class="method-args">(n)</span>
445
450
  </a>
446
451
  </div>
@@ -452,31 +457,32 @@ find number of digits in base 10 needed to express the given number n
452
457
  </div>
453
458
  </div>
454
459
 
455
- <div id="method-M000149" class="method-detail">
456
- <a name="M000149"></a>
460
+ <div id="method-M000154" class="method-detail">
461
+ <a name="M000154"></a>
457
462
 
458
463
  <div class="method-heading">
459
- <a href="LongMath.src/M000149.html" target="Code" class="method-signature"
460
- onclick="popupCode('LongMath.src/M000149.html');return false;">
464
+ <a href="LongMath.src/M000154.html" target="Code" class="method-signature"
465
+ onclick="popupCode('LongMath.src/M000154.html');return false;">
461
466
  <span class="method-name">ipower</span><span class="method-args">(x, y, prec, mode)</span>
462
467
  </a>
463
468
  </div>
464
469
 
465
470
  <div class="method-description">
466
471
  <p>
467
- internal functionality to calculate the y-th power of x assuming that y is
468
- an integer prec is a hint on how much internal precision is needed at most
469
- final rounding is left to the caller
472
+ internal functionality to calculate the y-th <a
473
+ href="LongMath.html#M000153">power</a> of x assuming that y is an integer
474
+ prec is a hint on how much internal precision is needed at most final
475
+ rounding is left to the caller
470
476
  </p>
471
477
  </div>
472
478
  </div>
473
479
 
474
- <div id="method-M000142" class="method-detail">
475
- <a name="M000142"></a>
480
+ <div id="method-M000147" class="method-detail">
481
+ <a name="M000147"></a>
476
482
 
477
483
  <div class="method-heading">
478
- <a href="LongMath.src/M000142.html" target="Code" class="method-signature"
479
- onclick="popupCode('LongMath.src/M000142.html');return false;">
484
+ <a href="LongMath.src/M000147.html" target="Code" class="method-signature"
485
+ onclick="popupCode('LongMath.src/M000147.html');return false;">
480
486
  <span class="method-name">log</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
481
487
  </a>
482
488
  </div>
@@ -489,12 +495,12 @@ href="LongDecimal.html">LongDecimal</a>.
489
495
  </div>
490
496
  </div>
491
497
 
492
- <div id="method-M000143" class="method-detail">
493
- <a name="M000143"></a>
498
+ <div id="method-M000148" class="method-detail">
499
+ <a name="M000148"></a>
494
500
 
495
501
  <div class="method-heading">
496
- <a href="LongMath.src/M000143.html" target="Code" class="method-signature"
497
- onclick="popupCode('LongMath.src/M000143.html');return false;">
502
+ <a href="LongMath.src/M000148.html" target="Code" class="method-signature"
503
+ onclick="popupCode('LongMath.src/M000148.html');return false;">
498
504
  <span class="method-name">log10</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
499
505
  </a>
500
506
  </div>
@@ -507,12 +513,12 @@ href="LongDecimal.html">LongDecimal</a>.
507
513
  </div>
508
514
  </div>
509
515
 
510
- <div id="method-M000144" class="method-detail">
511
- <a name="M000144"></a>
516
+ <div id="method-M000149" class="method-detail">
517
+ <a name="M000149"></a>
512
518
 
513
519
  <div class="method-heading">
514
- <a href="LongMath.src/M000144.html" target="Code" class="method-signature"
515
- onclick="popupCode('LongMath.src/M000144.html');return false;">
520
+ <a href="LongMath.src/M000149.html" target="Code" class="method-signature"
521
+ onclick="popupCode('LongMath.src/M000149.html');return false;">
516
522
  <span class="method-name">log2</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
517
523
  </a>
518
524
  </div>
@@ -525,50 +531,52 @@ href="LongDecimal.html">LongDecimal</a>.
525
531
  </div>
526
532
  </div>
527
533
 
528
- <div id="method-M000145" class="method-detail">
529
- <a name="M000145"></a>
534
+ <div id="method-M000150" class="method-detail">
535
+ <a name="M000150"></a>
530
536
 
531
537
  <div class="method-heading">
532
- <a href="LongMath.src/M000145.html" target="Code" class="method-signature"
533
- onclick="popupCode('LongMath.src/M000145.html');return false;">
538
+ <a href="LongMath.src/M000150.html" target="Code" class="method-signature"
539
+ onclick="popupCode('LongMath.src/M000150.html');return false;">
534
540
  <span class="method-name">log_internal</span><span class="method-args">(x, prec = nil, final_mode = LongMath.standard_mode, iprec = nil, mode = LongMath.standard_imode, cache_result = true)</span>
535
541
  </a>
536
542
  </div>
537
543
 
538
544
  <div class="method-description">
539
545
  <p>
540
- internal functionality of log. exposes some more parameters, that should
541
- usually be set to defaut values, in order to allow better testing. do not
542
- actually call this method unless you are testing log. create a bug report,
543
- if the default settings for the parameters do not work correctly
546
+ internal functionality of <a href="LongMath.html#M000147">log</a>. exposes
547
+ some more parameters, that should usually be set to defaut values, in order
548
+ to allow better testing. do not actually call this method unless you are
549
+ testing <a href="LongMath.html#M000147">log</a>. create a bug report, if
550
+ the default settings for the parameters do not work correctly
544
551
  </p>
545
552
  </div>
546
553
  </div>
547
554
 
548
- <div id="method-M000146" class="method-detail">
549
- <a name="M000146"></a>
555
+ <div id="method-M000151" class="method-detail">
556
+ <a name="M000151"></a>
550
557
 
551
558
  <div class="method-heading">
552
- <a href="LongMath.src/M000146.html" target="Code" class="method-signature"
553
- onclick="popupCode('LongMath.src/M000146.html');return false;">
559
+ <a href="LongMath.src/M000151.html" target="Code" class="method-signature"
560
+ onclick="popupCode('LongMath.src/M000151.html');return false;">
554
561
  <span class="method-name">log_raw</span><span class="method-args">(x, prec, iprec, mode)</span>
555
562
  </a>
556
563
  </div>
557
564
 
558
565
  <div class="method-description">
559
566
  <p>
560
- calculate log with all digits used internally. result needs to be rounded
561
- in order to ensure that all digits that are provided are correct.
567
+ calculate <a href="LongMath.html#M000147">log</a> with all digits used
568
+ internally. result needs to be rounded in order to ensure that all digits
569
+ that are provided are correct.
562
570
  </p>
563
571
  </div>
564
572
  </div>
565
573
 
566
- <div id="method-M000125" class="method-detail">
567
- <a name="M000125"></a>
574
+ <div id="method-M000130" class="method-detail">
575
+ <a name="M000130"></a>
568
576
 
569
577
  <div class="method-heading">
570
- <a href="LongMath.src/M000125.html" target="Code" class="method-signature"
571
- onclick="popupCode('LongMath.src/M000125.html');return false;">
578
+ <a href="LongMath.src/M000130.html" target="Code" class="method-signature"
579
+ onclick="popupCode('LongMath.src/M000130.html');return false;">
572
580
  <span class="method-name">merge_from_words</span><span class="method-args">(words, word_len = 32)</span>
573
581
  </a>
574
582
  </div>
@@ -576,17 +584,17 @@ in order to ensure that all digits that are provided are correct.
576
584
  <div class="method-description">
577
585
  <p>
578
586
  concatenate numbers given in words as bit patterns (the opposite of <a
579
- href="LongMath.html#M000124">split_to_words</a>)
587
+ href="LongMath.html#M000129">split_to_words</a>)
580
588
  </p>
581
589
  </div>
582
590
  </div>
583
591
 
584
- <div id="method-M000132" class="method-detail">
585
- <a name="M000132"></a>
592
+ <div id="method-M000137" class="method-detail">
593
+ <a name="M000137"></a>
586
594
 
587
595
  <div class="method-heading">
588
- <a href="LongMath.src/M000132.html" target="Code" class="method-signature"
589
- onclick="popupCode('LongMath.src/M000132.html');return false;">
596
+ <a href="LongMath.src/M000137.html" target="Code" class="method-signature"
597
+ onclick="popupCode('LongMath.src/M000137.html');return false;">
590
598
  <span class="method-name">multiplicity_of_10</span><span class="method-args">(n)</span>
591
599
  </a>
592
600
  </div>
@@ -598,156 +606,159 @@ how many times can n be divided by 10?
598
606
  </div>
599
607
  </div>
600
608
 
601
- <div id="method-M000131" class="method-detail">
602
- <a name="M000131"></a>
609
+ <div id="method-M000136" class="method-detail">
610
+ <a name="M000136"></a>
603
611
 
604
612
  <div class="method-heading">
605
- <a href="LongMath.src/M000131.html" target="Code" class="method-signature"
606
- onclick="popupCode('LongMath.src/M000131.html');return false;">
613
+ <a href="LongMath.src/M000136.html" target="Code" class="method-signature"
614
+ onclick="popupCode('LongMath.src/M000136.html');return false;">
607
615
  <span class="method-name">multiplicity_of_factor</span><span class="method-args">(x, prime_number)</span>
608
616
  </a>
609
617
  </div>
610
618
 
611
619
  <div class="method-description">
612
620
  <p>
613
- Find the exponent of the highest power of prime number p that divides the
614
- Integer x. Only works for prime numbers p (parameter prime_number). The
615
- caller has to make sure that p (parameter prime_number) is actually a prime
616
- number, because checks for primality actually cost something and should not
617
- be duplicated more than necessary. This method works even for numbers x
618
- that exceed the range of Float
621
+ Find the exponent of the highest <a href="LongMath.html#M000153">power</a>
622
+ of prime number p that divides the <a href="Integer.html">Integer</a> x.
623
+ Only works for prime numbers p (parameter prime_number). The caller has to
624
+ make sure that p (parameter prime_number) is actually a prime number,
625
+ because checks for primality actually cost something and should not be
626
+ duplicated more than necessary. This method works even for numbers x that
627
+ exceed the range of Float
619
628
  </p>
620
629
  </div>
621
630
  </div>
622
631
 
623
- <div id="method-M000134" class="method-detail">
624
- <a name="M000134"></a>
632
+ <div id="method-M000139" class="method-detail">
633
+ <a name="M000139"></a>
625
634
 
626
635
  <div class="method-heading">
627
- <a href="LongMath.src/M000134.html" target="Code" class="method-signature"
628
- onclick="popupCode('LongMath.src/M000134.html');return false;">
636
+ <a href="LongMath.src/M000139.html" target="Code" class="method-signature"
637
+ onclick="popupCode('LongMath.src/M000139.html');return false;">
629
638
  <span class="method-name">pi</span><span class="method-args">(prec, final_mode = LongMath.standard_mode, iprec = nil, mode = nil, cache_result = true)</span>
630
639
  </a>
631
640
  </div>
632
641
 
633
642
  <div class="method-description">
634
643
  <p>
635
- method for calculating pi to the given number of digits after the decimal
636
- point. It works fine for 1000 or 2000 digits or so. This method could be
637
- optimized more, but if you really want to go for more digits, you will find
638
- a specialized and optimized program for this specific purpose, probably
639
- written in C or C++. Since calculation of pi is not what should typically
640
- be done with <a href="LongDecimal.html">LongDecimal</a>, you may consider
641
- this method to be the easter egg of <a
642
- href="LongDecimal.html">LongDecimal</a>. ;-) parameters prec precision of
643
- the end result final_mode rounding mode to be used when creating the end
644
- result iprec precision used internally mode rounding_mode used internally
645
- cache_result should the result be cached? Set to false, if an extraordinary
646
- long result is really needed only once
644
+ method for calculating <a href="LongMath.html#M000139">pi</a> to the given
645
+ number of digits after the decimal point. It works fine for 1000 or 2000
646
+ digits or so. This method could be optimized more, but if you really want
647
+ to go for more digits, you will find a specialized and optimized program
648
+ for this specific purpose, probably written in C or C++. Since calculation
649
+ of <a href="LongMath.html#M000139">pi</a> is not what should typically be
650
+ done with <a href="LongDecimal.html">LongDecimal</a>, you may consider this
651
+ method to be the easter egg of <a href="LongDecimal.html">LongDecimal</a>.
652
+ ;-) parameters prec precision of the end result final_mode rounding mode to
653
+ be used when creating the end result iprec precision used internally mode
654
+ rounding_mode used internally cache_result should the result be cached? Set
655
+ to false, if an extraordinary long result is really needed only once
647
656
  </p>
648
657
  </div>
649
658
  </div>
650
659
 
651
- <div id="method-M000148" class="method-detail">
652
- <a name="M000148"></a>
660
+ <div id="method-M000153" class="method-detail">
661
+ <a name="M000153"></a>
653
662
 
654
663
  <div class="method-heading">
655
- <a href="LongMath.src/M000148.html" target="Code" class="method-signature"
656
- onclick="popupCode('LongMath.src/M000148.html');return false;">
664
+ <a href="LongMath.src/M000153.html" target="Code" class="method-signature"
665
+ onclick="popupCode('LongMath.src/M000153.html');return false;">
657
666
  <span class="method-name">power</span><span class="method-args">(x, y, prec, mode = LongMath.standard_mode)</span>
658
667
  </a>
659
668
  </div>
660
669
 
661
670
  <div class="method-description">
662
671
  <p>
663
- calc the power of x with exponent y to the given precision as <a
664
- href="LongDecimal.html">LongDecimal</a>. Only supports values of y such
665
- that exp(y) still fits into a float (y &lt;= 709)
672
+ calc the <a href="LongMath.html#M000153">power</a> of x with exponent y to
673
+ the given precision as <a href="LongDecimal.html">LongDecimal</a>. Only
674
+ supports values of y such that <a href="LongMath.html#M000140">exp</a>(y)
675
+ still fits into a float (y &lt;= 709)
666
676
  </p>
667
677
  </div>
668
678
  </div>
669
679
 
670
- <div id="method-M000150" class="method-detail">
671
- <a name="M000150"></a>
680
+ <div id="method-M000155" class="method-detail">
681
+ <a name="M000155"></a>
672
682
 
673
683
  <div class="method-heading">
674
- <a href="LongMath.src/M000150.html" target="Code" class="method-signature"
675
- onclick="popupCode('LongMath.src/M000150.html');return false;">
684
+ <a href="LongMath.src/M000155.html" target="Code" class="method-signature"
685
+ onclick="popupCode('LongMath.src/M000155.html');return false;">
676
686
  <span class="method-name">power_internal</span><span class="method-args">(x, y, prec = nil, final_mode = LongMath.standard_mode, iprec = nil, mode = LongMath.standard_imode)</span>
677
687
  </a>
678
688
  </div>
679
689
 
680
690
  <div class="method-description">
681
691
  <p>
682
- internal functionality of exp. exposes some more parameters, that should
683
- usually be set to defaut values, in order to allow better testing. do not
684
- actually call this method unless you are testing exp. create a bug report,
685
- if the default settings for the parameters do not work correctly
692
+ internal functionality of <a href="LongMath.html#M000140">exp</a>. exposes
693
+ some more parameters, that should usually be set to defaut values, in order
694
+ to allow better testing. do not actually call this method unless you are
695
+ testing <a href="LongMath.html#M000140">exp</a>. create a bug report, if
696
+ the default settings for the parameters do not work correctly
686
697
  </p>
687
698
  </div>
688
699
  </div>
689
700
 
690
- <div id="method-M000124" class="method-detail">
691
- <a name="M000124"></a>
701
+ <div id="method-M000129" class="method-detail">
702
+ <a name="M000129"></a>
692
703
 
693
704
  <div class="method-heading">
694
- <a href="LongMath.src/M000124.html" target="Code" class="method-signature"
695
- onclick="popupCode('LongMath.src/M000124.html');return false;">
705
+ <a href="LongMath.src/M000129.html" target="Code" class="method-signature"
706
+ onclick="popupCode('LongMath.src/M000129.html');return false;">
696
707
  <span class="method-name">split_to_words</span><span class="method-args">(x, word_len = 32)</span>
697
708
  </a>
698
709
  </div>
699
710
 
700
711
  <div class="method-description">
701
712
  <p>
702
- split number (Integer) x into parts of word_len bits each such that the
703
- concatenation of these parts as bit patterns is x (the opposite of <a
704
- href="LongMath.html#M000125">merge_from_words</a>)
713
+ split number (<a href="Integer.html">Integer</a>) x into parts of word_len
714
+ bits each such that the concatenation of these parts as bit patterns is x
715
+ (the opposite of <a href="LongMath.html#M000130">merge_from_words</a>)
705
716
  </p>
706
717
  </div>
707
718
  </div>
708
719
 
709
- <div id="method-M000140" class="method-detail">
710
- <a name="M000140"></a>
720
+ <div id="method-M000145" class="method-detail">
721
+ <a name="M000145"></a>
711
722
 
712
723
  <div class="method-heading">
713
- <a href="LongMath.src/M000140.html" target="Code" class="method-signature"
714
- onclick="popupCode('LongMath.src/M000140.html');return false;">
724
+ <a href="LongMath.src/M000145.html" target="Code" class="method-signature"
725
+ onclick="popupCode('LongMath.src/M000145.html');return false;">
715
726
  <span class="method-name">sqrt</span><span class="method-args">(x, prec, mode = LongMath.standard_mode)</span>
716
727
  </a>
717
728
  </div>
718
729
 
719
730
  <div class="method-description">
720
731
  <p>
721
- calculate approximation of sqrt of a <a
732
+ calculate approximation of <a href="LongMath.html#M000145">sqrt</a> of a <a
722
733
  href="LongDecimal.html">LongDecimal</a>.
723
734
  </p>
724
735
  </div>
725
736
  </div>
726
737
 
727
- <div id="method-M000141" class="method-detail">
728
- <a name="M000141"></a>
738
+ <div id="method-M000146" class="method-detail">
739
+ <a name="M000146"></a>
729
740
 
730
741
  <div class="method-heading">
731
- <a href="LongMath.src/M000141.html" target="Code" class="method-signature"
732
- onclick="popupCode('LongMath.src/M000141.html');return false;">
742
+ <a href="LongMath.src/M000146.html" target="Code" class="method-signature"
743
+ onclick="popupCode('LongMath.src/M000146.html');return false;">
733
744
  <span class="method-name">sqrt_with_remainder</span><span class="method-args">(x, prec)</span>
734
745
  </a>
735
746
  </div>
736
747
 
737
748
  <div class="method-description">
738
749
  <p>
739
- calculate approximation of sqrt of a <a
750
+ calculate approximation of <a href="LongMath.html#M000145">sqrt</a> of a <a
740
751
  href="LongDecimal.html">LongDecimal</a> with remainder
741
752
  </p>
742
753
  </div>
743
754
  </div>
744
755
 
745
- <div id="method-M000126" class="method-detail">
746
- <a name="M000126"></a>
756
+ <div id="method-M000131" class="method-detail">
757
+ <a name="M000131"></a>
747
758
 
748
759
  <div class="method-heading">
749
- <a href="LongMath.src/M000126.html" target="Code" class="method-signature"
750
- onclick="popupCode('LongMath.src/M000126.html');return false;">
760
+ <a href="LongMath.src/M000131.html" target="Code" class="method-signature"
761
+ onclick="popupCode('LongMath.src/M000131.html');return false;">
751
762
  <span class="method-name">sqrtb</span><span class="method-args">(x)</span>
752
763
  </a>
753
764
  </div>
@@ -760,12 +771,12 @@ result is rounded to an integer y such that y**2
760
771
  </div>
761
772
  </div>
762
773
 
763
- <div id="method-M000127" class="method-detail">
764
- <a name="M000127"></a>
774
+ <div id="method-M000132" class="method-detail">
775
+ <a name="M000132"></a>
765
776
 
766
777
  <div class="method-heading">
767
- <a href="LongMath.src/M000127.html" target="Code" class="method-signature"
768
- onclick="popupCode('LongMath.src/M000127.html');return false;">
778
+ <a href="LongMath.src/M000132.html" target="Code" class="method-signature"
779
+ onclick="popupCode('LongMath.src/M000132.html');return false;">
769
780
  <span class="method-name">sqrtb_with_remainder</span><span class="method-args">(x)</span>
770
781
  </a>
771
782
  </div>
@@ -782,12 +793,12 @@ result is rounded to an integer y such that y**2
782
793
  </div>
783
794
  </div>
784
795
 
785
- <div id="method-M000128" class="method-detail">
786
- <a name="M000128"></a>
796
+ <div id="method-M000133" class="method-detail">
797
+ <a name="M000133"></a>
787
798
 
788
799
  <div class="method-heading">
789
- <a href="LongMath.src/M000128.html" target="Code" class="method-signature"
790
- onclick="popupCode('LongMath.src/M000128.html');return false;">
800
+ <a href="LongMath.src/M000133.html" target="Code" class="method-signature"
801
+ onclick="popupCode('LongMath.src/M000133.html');return false;">
791
802
  <span class="method-name">sqrtw</span><span class="method-args">(x, n = 16)</span>
792
803
  </a>
793
804
  </div>
@@ -803,12 +814,12 @@ integer y such that y**2
803
814
  </div>
804
815
  </div>
805
816
 
806
- <div id="method-M000129" class="method-detail">
807
- <a name="M000129"></a>
817
+ <div id="method-M000134" class="method-detail">
818
+ <a name="M000134"></a>
808
819
 
809
820
  <div class="method-heading">
810
- <a href="LongMath.src/M000129.html" target="Code" class="method-signature"
811
- onclick="popupCode('LongMath.src/M000129.html');return false;">
821
+ <a href="LongMath.src/M000134.html" target="Code" class="method-signature"
822
+ onclick="popupCode('LongMath.src/M000134.html');return false;">
812
823
  <span class="method-name">sqrtw_with_remainder</span><span class="method-args">(x, n = 16)</span>
813
824
  </a>
814
825
  </div>
@@ -829,12 +840,12 @@ integer y such that y**2
829
840
  </div>
830
841
  </div>
831
842
 
832
- <div id="method-M000153" class="method-detail">
833
- <a name="M000153"></a>
843
+ <div id="method-M000158" class="method-detail">
844
+ <a name="M000158"></a>
834
845
 
835
846
  <div class="method-heading">
836
- <a href="LongMath.src/M000153.html" target="Code" class="method-signature"
837
- onclick="popupCode('LongMath.src/M000153.html');return false;">
847
+ <a href="LongMath.src/M000158.html" target="Code" class="method-signature"
848
+ onclick="popupCode('LongMath.src/M000158.html');return false;">
838
849
  <span class="method-name">standard_imode</span><span class="method-args">()</span>
839
850
  </a>
840
851
  </div>
@@ -843,12 +854,12 @@ integer y such that y**2
843
854
  </div>
844
855
  </div>
845
856
 
846
- <div id="method-M000154" class="method-detail">
847
- <a name="M000154"></a>
857
+ <div id="method-M000159" class="method-detail">
858
+ <a name="M000159"></a>
848
859
 
849
860
  <div class="method-heading">
850
- <a href="LongMath.src/M000154.html" target="Code" class="method-signature"
851
- onclick="popupCode('LongMath.src/M000154.html');return false;">
861
+ <a href="LongMath.src/M000159.html" target="Code" class="method-signature"
862
+ onclick="popupCode('LongMath.src/M000159.html');return false;">
852
863
  <span class="method-name">standard_imode=</span><span class="method-args">(x)</span>
853
864
  </a>
854
865
  </div>
@@ -857,12 +868,12 @@ integer y such that y**2
857
868
  </div>
858
869
  </div>
859
870
 
860
- <div id="method-M000151" class="method-detail">
861
- <a name="M000151"></a>
871
+ <div id="method-M000156" class="method-detail">
872
+ <a name="M000156"></a>
862
873
 
863
874
  <div class="method-heading">
864
- <a href="LongMath.src/M000151.html" target="Code" class="method-signature"
865
- onclick="popupCode('LongMath.src/M000151.html');return false;">
875
+ <a href="LongMath.src/M000156.html" target="Code" class="method-signature"
876
+ onclick="popupCode('LongMath.src/M000156.html');return false;">
866
877
  <span class="method-name">standard_mode</span><span class="method-args">()</span>
867
878
  </a>
868
879
  </div>
@@ -871,12 +882,12 @@ integer y such that y**2
871
882
  </div>
872
883
  </div>
873
884
 
874
- <div id="method-M000152" class="method-detail">
875
- <a name="M000152"></a>
885
+ <div id="method-M000157" class="method-detail">
886
+ <a name="M000157"></a>
876
887
 
877
888
  <div class="method-heading">
878
- <a href="LongMath.src/M000152.html" target="Code" class="method-signature"
879
- onclick="popupCode('LongMath.src/M000152.html');return false;">
889
+ <a href="LongMath.src/M000157.html" target="Code" class="method-signature"
890
+ onclick="popupCode('LongMath.src/M000157.html');return false;">
880
891
  <span class="method-name">standard_mode=</span><span class="method-args">(x)</span>
881
892
  </a>
882
893
  </div>