long-decimal 0.00.14 → 0.00.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,11 +73,8 @@
73
73
  <div id="contextContent">
74
74
  <div id="diagram">
75
75
  <map id="map" name="map">
76
- <area shape="RECT" coords="40,6,195,54" href="LongDecimalRoundingMode.html" alt="LongDecimalRoundingMode">
77
- <area shape="RECT" coords="27,198,141,246" href="LongMath/LongDecimalQuot.html" alt="LongDecimalQuot">
78
- <area shape="RECT" coords="165,198,259,246" href="LongMath/LongDecimal.html" alt="LongDecimal">
79
- <area shape="RECT" coords="181,102,253,150" href="LongMath/Numeric.html" alt="Numeric">
80
- <area shape="RECT" coords="16,68,269,256" href="LongMath.html" alt="LongMath">
76
+ <area shape="RECT" coords="5,5,160,53" href="LongDecimalRoundingMode.html" alt="LongDecimalRoundingMode">
77
+ <area shape="RECT" coords="36,68,129,115" href="LongMath.html" alt="LongMath">
81
78
  </map>
82
79
  <img src="../dot/m_0_0.png" usemap="#map" border=0 alt="Module: LongMath">
83
80
  </div>
@@ -85,12 +82,12 @@
85
82
  <div id="description">
86
83
  <p>
87
84
  <a href="LongMath.html">LongMath</a> provides some helper functions to
88
- support <a href="LongMath.html#M000024">LongDecimal</a> and <a
89
- href="LongMath.html#M000025">LongDecimalQuot</a>, mostly operating on
85
+ support <a href="LongDecimal.html">LongDecimal</a> and <a
86
+ href="LongDecimalQuot.html">LongDecimalQuot</a>, mostly operating on
90
87
  integers. They are used internally here, but possibly they can be used
91
88
  elsewhere as well. In addition <a href="LongMath.html">LongMath</a>
92
89
  provides methods like those in Math, but for <a
93
- href="LongMath.html#M000024">LongDecimal</a> instead of Float.
90
+ href="LongDecimal.html">LongDecimal</a> instead of Float.
94
91
  </p>
95
92
 
96
93
  </div>
@@ -102,31 +99,29 @@ href="LongMath.html#M000024">LongDecimal</a> instead of Float.
102
99
  <h3 class="section-bar">Methods</h3>
103
100
 
104
101
  <div class="name-list">
105
- <a href="#M000024">LongDecimal</a>&nbsp;&nbsp;
106
- <a href="#M000025">LongDecimalQuot</a>&nbsp;&nbsp;
107
- <a href="#M000016">calc_iprec_for_exp</a>&nbsp;&nbsp;
108
- <a href="#M000014">calc_pi</a>&nbsp;&nbsp;
109
- <a href="#M000002">check_is_int</a>&nbsp;&nbsp;
110
- <a href="#M000003">check_is_ld</a>&nbsp;&nbsp;
111
- <a href="#M000005">check_is_mode</a>&nbsp;&nbsp;
112
- <a href="#M000004">check_is_prec</a>&nbsp;&nbsp;
113
- <a href="#M000001">check_word_len</a>&nbsp;&nbsp;
114
- <a href="#M000015">exp</a>&nbsp;&nbsp;
115
- <a href="#M000017">exp_internal</a>&nbsp;&nbsp;
116
- <a href="#M000012">gcd_with_high_power</a>&nbsp;&nbsp;
117
- <a href="#M000018">log</a>&nbsp;&nbsp;
118
- <a href="#M000019">log10</a>&nbsp;&nbsp;
119
- <a href="#M000020">log2</a>&nbsp;&nbsp;
120
- <a href="#M000021">log_internal</a>&nbsp;&nbsp;
121
- <a href="#M000007">merge_from_words</a>&nbsp;&nbsp;
122
- <a href="#M000013">multiplicity_of_factor</a>&nbsp;&nbsp;
123
- <a href="#M000022">power</a>&nbsp;&nbsp;
124
- <a href="#M000023">power_internal</a>&nbsp;&nbsp;
125
- <a href="#M000006">split_to_words</a>&nbsp;&nbsp;
126
- <a href="#M000008">sqrtb</a>&nbsp;&nbsp;
127
- <a href="#M000009">sqrtb_with_remainder</a>&nbsp;&nbsp;
128
- <a href="#M000010">sqrtw</a>&nbsp;&nbsp;
129
- <a href="#M000011">sqrtw_with_remainder</a>&nbsp;&nbsp;
102
+ <a href="#M000128">calc_iprec_for_exp</a>&nbsp;&nbsp;
103
+ <a href="#M000126">calc_pi</a>&nbsp;&nbsp;
104
+ <a href="#M000114">check_is_int</a>&nbsp;&nbsp;
105
+ <a href="#M000115">check_is_ld</a>&nbsp;&nbsp;
106
+ <a href="#M000117">check_is_mode</a>&nbsp;&nbsp;
107
+ <a href="#M000116">check_is_prec</a>&nbsp;&nbsp;
108
+ <a href="#M000113">check_word_len</a>&nbsp;&nbsp;
109
+ <a href="#M000127">exp</a>&nbsp;&nbsp;
110
+ <a href="#M000129">exp_internal</a>&nbsp;&nbsp;
111
+ <a href="#M000124">gcd_with_high_power</a>&nbsp;&nbsp;
112
+ <a href="#M000130">log</a>&nbsp;&nbsp;
113
+ <a href="#M000131">log10</a>&nbsp;&nbsp;
114
+ <a href="#M000132">log2</a>&nbsp;&nbsp;
115
+ <a href="#M000133">log_internal</a>&nbsp;&nbsp;
116
+ <a href="#M000119">merge_from_words</a>&nbsp;&nbsp;
117
+ <a href="#M000125">multiplicity_of_factor</a>&nbsp;&nbsp;
118
+ <a href="#M000134">power</a>&nbsp;&nbsp;
119
+ <a href="#M000135">power_internal</a>&nbsp;&nbsp;
120
+ <a href="#M000118">split_to_words</a>&nbsp;&nbsp;
121
+ <a href="#M000120">sqrtb</a>&nbsp;&nbsp;
122
+ <a href="#M000121">sqrtb_with_remainder</a>&nbsp;&nbsp;
123
+ <a href="#M000122">sqrtw</a>&nbsp;&nbsp;
124
+ <a href="#M000123">sqrtw_with_remainder</a>&nbsp;&nbsp;
130
125
  </div>
131
126
  </div>
132
127
 
@@ -144,14 +139,6 @@ href="LongMath.html#M000024">LongDecimal</a> instead of Float.
144
139
 
145
140
  <div id="section">
146
141
 
147
- <div id="class-list">
148
- <h3 class="section-bar">Classes and Modules</h3>
149
-
150
- Class <a href="LongMath/LongDecimal.html" class="link">LongMath::LongDecimal</a><br />
151
- Class <a href="LongMath/LongDecimalQuot.html" class="link">LongMath::LongDecimalQuot</a><br />
152
- Class <a href="LongMath/Numeric.html" class="link">LongMath::Numeric</a><br />
153
-
154
- </div>
155
142
 
156
143
  <div id="constants-list">
157
144
  <h3 class="section-bar">Constants</h3>
@@ -191,12 +178,12 @@ Class <a href="LongMath/Numeric.html" class="link">LongMath::Numeric</a><br />
191
178
  <div id="methods">
192
179
  <h3 class="section-bar">Public Class methods</h3>
193
180
 
194
- <div id="method-M000016" class="method-detail">
195
- <a name="M000016"></a>
181
+ <div id="method-M000128" class="method-detail">
182
+ <a name="M000128"></a>
196
183
 
197
184
  <div class="method-heading">
198
- <a href="LongMath.src/M000016.html" target="Code" class="method-signature"
199
- onclick="popupCode('LongMath.src/M000016.html');return false;">
185
+ <a href="LongMath.src/M000128.html" target="Code" class="method-signature"
186
+ onclick="popupCode('LongMath.src/M000128.html');return false;">
200
187
  <span class="method-name">calc_iprec_for_exp</span><span class="method-args">(x, prec)</span>
201
188
  </a>
202
189
  </div>
@@ -208,12 +195,12 @@ private helper method for exponentiation calculate internal precision
208
195
  </div>
209
196
  </div>
210
197
 
211
- <div id="method-M000014" class="method-detail">
212
- <a name="M000014"></a>
198
+ <div id="method-M000126" class="method-detail">
199
+ <a name="M000126"></a>
213
200
 
214
201
  <div class="method-heading">
215
- <a href="LongMath.src/M000014.html" target="Code" class="method-signature"
216
- onclick="popupCode('LongMath.src/M000014.html');return false;">
202
+ <a href="LongMath.src/M000126.html" target="Code" class="method-signature"
203
+ onclick="popupCode('LongMath.src/M000126.html');return false;">
217
204
  <span class="method-name">calc_pi</span><span class="method-args">(prec, final_mode = LongDecimal::ROUND_HALF_DOWN)</span>
218
205
  </a>
219
206
  </div>
@@ -225,19 +212,19 @@ point. It works fine for 1000 or 2000 digits or so. This method could be
225
212
  optimized more, but if you really want to go for more digits, you will find
226
213
  a specialized and optimized program for this specific purpose, probably
227
214
  written in C or C++. Since calculation of pi is not what should typically
228
- be done with <a href="LongMath.html#M000024">LongDecimal</a>, you may
229
- consider this method to be the easter egg of <a
230
- href="LongMath.html#M000024">LongDecimal</a>. ;-)
215
+ be done with <a href="LongDecimal.html">LongDecimal</a>, you may consider
216
+ this method to be the easter egg of <a
217
+ href="LongDecimal.html">LongDecimal</a>. ;-)
231
218
  </p>
232
219
  </div>
233
220
  </div>
234
221
 
235
- <div id="method-M000002" class="method-detail">
236
- <a name="M000002"></a>
222
+ <div id="method-M000114" class="method-detail">
223
+ <a name="M000114"></a>
237
224
 
238
225
  <div class="method-heading">
239
- <a href="LongMath.src/M000002.html" target="Code" class="method-signature"
240
- onclick="popupCode('LongMath.src/M000002.html');return false;">
226
+ <a href="LongMath.src/M000114.html" target="Code" class="method-signature"
227
+ onclick="popupCode('LongMath.src/M000114.html');return false;">
241
228
  <span class="method-name">check_is_int</span><span class="method-args">(x, name=&quot;x&quot;)</span>
242
229
  </a>
243
230
  </div>
@@ -249,12 +236,12 @@ helper method for internal use: checks if parameter x is an Integer
249
236
  </div>
250
237
  </div>
251
238
 
252
- <div id="method-M000003" class="method-detail">
253
- <a name="M000003"></a>
239
+ <div id="method-M000115" class="method-detail">
240
+ <a name="M000115"></a>
254
241
 
255
242
  <div class="method-heading">
256
- <a href="LongMath.src/M000003.html" target="Code" class="method-signature"
257
- onclick="popupCode('LongMath.src/M000003.html');return false;">
243
+ <a href="LongMath.src/M000115.html" target="Code" class="method-signature"
244
+ onclick="popupCode('LongMath.src/M000115.html');return false;">
258
245
  <span class="method-name">check_is_ld</span><span class="method-args">(x, name=&quot;x&quot;)</span>
259
246
  </a>
260
247
  </div>
@@ -262,17 +249,17 @@ helper method for internal use: checks if parameter x is an Integer
262
249
  <div class="method-description">
263
250
  <p>
264
251
  helper method for internal use: checks if parameter x is a <a
265
- href="LongMath.html#M000024">LongDecimal</a>
252
+ href="LongDecimal.html">LongDecimal</a>
266
253
  </p>
267
254
  </div>
268
255
  </div>
269
256
 
270
- <div id="method-M000005" class="method-detail">
271
- <a name="M000005"></a>
257
+ <div id="method-M000117" class="method-detail">
258
+ <a name="M000117"></a>
272
259
 
273
260
  <div class="method-heading">
274
- <a href="LongMath.src/M000005.html" target="Code" class="method-signature"
275
- onclick="popupCode('LongMath.src/M000005.html');return false;">
261
+ <a href="LongMath.src/M000117.html" target="Code" class="method-signature"
262
+ onclick="popupCode('LongMath.src/M000117.html');return false;">
276
263
  <span class="method-name">check_is_mode</span><span class="method-args">(mode, name=&quot;mode&quot;)</span>
277
264
  </a>
278
265
  </div>
@@ -285,12 +272,12 @@ helper method for internal use: checks if parameter x is a rounding mode
285
272
  </div>
286
273
  </div>
287
274
 
288
- <div id="method-M000004" class="method-detail">
289
- <a name="M000004"></a>
275
+ <div id="method-M000116" class="method-detail">
276
+ <a name="M000116"></a>
290
277
 
291
278
  <div class="method-heading">
292
- <a href="LongMath.src/M000004.html" target="Code" class="method-signature"
293
- onclick="popupCode('LongMath.src/M000004.html');return false;">
279
+ <a href="LongMath.src/M000116.html" target="Code" class="method-signature"
280
+ onclick="popupCode('LongMath.src/M000116.html');return false;">
294
281
  <span class="method-name">check_is_prec</span><span class="method-args">(prec, name=&quot;prec&quot;)</span>
295
282
  </a>
296
283
  </div>
@@ -298,18 +285,17 @@ helper method for internal use: checks if parameter x is a rounding mode
298
285
  <div class="method-description">
299
286
  <p>
300
287
  helper method for internal use: checks if parameter x is a reasonable value
301
- for the precision (scale) of a <a
302
- href="LongMath.html#M000024">LongDecimal</a>
288
+ for the precision (scale) of a <a href="LongDecimal.html">LongDecimal</a>
303
289
  </p>
304
290
  </div>
305
291
  </div>
306
292
 
307
- <div id="method-M000001" class="method-detail">
308
- <a name="M000001"></a>
293
+ <div id="method-M000113" class="method-detail">
294
+ <a name="M000113"></a>
309
295
 
310
296
  <div class="method-heading">
311
- <a href="LongMath.src/M000001.html" target="Code" class="method-signature"
312
- onclick="popupCode('LongMath.src/M000001.html');return false;">
297
+ <a href="LongMath.src/M000113.html" target="Code" class="method-signature"
298
+ onclick="popupCode('LongMath.src/M000113.html');return false;">
313
299
  <span class="method-name">check_word_len</span><span class="method-args">(word_len, name=&quot;word_len&quot;)</span>
314
300
  </a>
315
301
  </div>
@@ -322,12 +308,12 @@ splitting a number into parts
322
308
  </div>
323
309
  </div>
324
310
 
325
- <div id="method-M000015" class="method-detail">
326
- <a name="M000015"></a>
311
+ <div id="method-M000127" class="method-detail">
312
+ <a name="M000127"></a>
327
313
 
328
314
  <div class="method-heading">
329
- <a href="LongMath.src/M000015.html" target="Code" class="method-signature"
330
- onclick="popupCode('LongMath.src/M000015.html');return false;">
315
+ <a href="LongMath.src/M000127.html" target="Code" class="method-signature"
316
+ onclick="popupCode('LongMath.src/M000127.html');return false;">
331
317
  <span class="method-name">exp</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
332
318
  </a>
333
319
  </div>
@@ -335,21 +321,21 @@ splitting a number into parts
335
321
  <div class="method-description">
336
322
  <p>
337
323
  calc the exponential function of x to the given precision as <a
338
- href="LongMath.html#M000024">LongDecimal</a>. Only supports values of x
339
- such that the result still fits into a float (x &lt;= 709). This limitation
340
- is somewhat arbitrary, but it is enforced in order to avoid producing
341
- numbers with the exponential function that exceed the memory. It may be
342
- removed in future versions.
324
+ href="LongDecimal.html">LongDecimal</a>. Only supports values of x such
325
+ that the result still fits into a float (x &lt;= 709). This limitation is
326
+ somewhat arbitrary, but it is enforced in order to avoid producing numbers
327
+ with the exponential function that exceed the memory. It may be removed in
328
+ future versions.
343
329
  </p>
344
330
  </div>
345
331
  </div>
346
332
 
347
- <div id="method-M000017" class="method-detail">
348
- <a name="M000017"></a>
333
+ <div id="method-M000129" class="method-detail">
334
+ <a name="M000129"></a>
349
335
 
350
336
  <div class="method-heading">
351
- <a href="LongMath.src/M000017.html" target="Code" class="method-signature"
352
- onclick="popupCode('LongMath.src/M000017.html');return false;">
337
+ <a href="LongMath.src/M000129.html" target="Code" class="method-signature"
338
+ onclick="popupCode('LongMath.src/M000129.html');return false;">
353
339
  <span class="method-name">exp_internal</span><span class="method-args">(x, prec = nil, final_mode = LongDecimal::ROUND_HALF_DOWN, j = nil, k = nil, iprec = nil, mode = LongDecimal::ROUND_HALF_DOWN)</span>
354
340
  </a>
355
341
  </div>
@@ -364,12 +350,12 @@ if the default settings for the parameters do not work correctly
364
350
  </div>
365
351
  </div>
366
352
 
367
- <div id="method-M000012" class="method-detail">
368
- <a name="M000012"></a>
353
+ <div id="method-M000124" class="method-detail">
354
+ <a name="M000124"></a>
369
355
 
370
356
  <div class="method-heading">
371
- <a href="LongMath.src/M000012.html" target="Code" class="method-signature"
372
- onclick="popupCode('LongMath.src/M000012.html');return false;">
357
+ <a href="LongMath.src/M000124.html" target="Code" class="method-signature"
358
+ onclick="popupCode('LongMath.src/M000124.html');return false;">
373
359
  <span class="method-name">gcd_with_high_power</span><span class="method-args">(x, b)</span>
374
360
  </a>
375
361
  </div>
@@ -382,12 +368,12 @@ exponent such that gcd(x, b**m) = gcd(x, b**n) for all m, n &gt;= n0
382
368
  </div>
383
369
  </div>
384
370
 
385
- <div id="method-M000018" class="method-detail">
386
- <a name="M000018"></a>
371
+ <div id="method-M000130" class="method-detail">
372
+ <a name="M000130"></a>
387
373
 
388
374
  <div class="method-heading">
389
- <a href="LongMath.src/M000018.html" target="Code" class="method-signature"
390
- onclick="popupCode('LongMath.src/M000018.html');return false;">
375
+ <a href="LongMath.src/M000130.html" target="Code" class="method-signature"
376
+ onclick="popupCode('LongMath.src/M000130.html');return false;">
391
377
  <span class="method-name">log</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
392
378
  </a>
393
379
  </div>
@@ -395,17 +381,17 @@ exponent such that gcd(x, b**m) = gcd(x, b**n) for all m, n &gt;= n0
395
381
  <div class="method-description">
396
382
  <p>
397
383
  calculate the natural logarithm function of x to the given precision as <a
398
- href="LongMath.html#M000024">LongDecimal</a>.
384
+ href="LongDecimal.html">LongDecimal</a>.
399
385
  </p>
400
386
  </div>
401
387
  </div>
402
388
 
403
- <div id="method-M000019" class="method-detail">
404
- <a name="M000019"></a>
389
+ <div id="method-M000131" class="method-detail">
390
+ <a name="M000131"></a>
405
391
 
406
392
  <div class="method-heading">
407
- <a href="LongMath.src/M000019.html" target="Code" class="method-signature"
408
- onclick="popupCode('LongMath.src/M000019.html');return false;">
393
+ <a href="LongMath.src/M000131.html" target="Code" class="method-signature"
394
+ onclick="popupCode('LongMath.src/M000131.html');return false;">
409
395
  <span class="method-name">log10</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
410
396
  </a>
411
397
  </div>
@@ -413,17 +399,17 @@ href="LongMath.html#M000024">LongDecimal</a>.
413
399
  <div class="method-description">
414
400
  <p>
415
401
  calculate the base 10 logarithm of x to the given precision as <a
416
- href="LongMath.html#M000024">LongDecimal</a>.
402
+ href="LongDecimal.html">LongDecimal</a>.
417
403
  </p>
418
404
  </div>
419
405
  </div>
420
406
 
421
- <div id="method-M000020" class="method-detail">
422
- <a name="M000020"></a>
407
+ <div id="method-M000132" class="method-detail">
408
+ <a name="M000132"></a>
423
409
 
424
410
  <div class="method-heading">
425
- <a href="LongMath.src/M000020.html" target="Code" class="method-signature"
426
- onclick="popupCode('LongMath.src/M000020.html');return false;">
411
+ <a href="LongMath.src/M000132.html" target="Code" class="method-signature"
412
+ onclick="popupCode('LongMath.src/M000132.html');return false;">
427
413
  <span class="method-name">log2</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
428
414
  </a>
429
415
  </div>
@@ -431,17 +417,17 @@ href="LongMath.html#M000024">LongDecimal</a>.
431
417
  <div class="method-description">
432
418
  <p>
433
419
  calculate the base 2 logarithm of x to the given precision as <a
434
- href="LongMath.html#M000024">LongDecimal</a>.
420
+ href="LongDecimal.html">LongDecimal</a>.
435
421
  </p>
436
422
  </div>
437
423
  </div>
438
424
 
439
- <div id="method-M000021" class="method-detail">
440
- <a name="M000021"></a>
425
+ <div id="method-M000133" class="method-detail">
426
+ <a name="M000133"></a>
441
427
 
442
428
  <div class="method-heading">
443
- <a href="LongMath.src/M000021.html" target="Code" class="method-signature"
444
- onclick="popupCode('LongMath.src/M000021.html');return false;">
429
+ <a href="LongMath.src/M000133.html" target="Code" class="method-signature"
430
+ onclick="popupCode('LongMath.src/M000133.html');return false;">
445
431
  <span class="method-name">log_internal</span><span class="method-args">(x, prec = nil, final_mode = LongDecimal::ROUND_HALF_DOWN, iprec = nil, mode = LongDecimal::ROUND_HALF_DOWN)</span>
446
432
  </a>
447
433
  </div>
@@ -456,12 +442,12 @@ if the default settings for the parameters do not work correctly
456
442
  </div>
457
443
  </div>
458
444
 
459
- <div id="method-M000007" class="method-detail">
460
- <a name="M000007"></a>
445
+ <div id="method-M000119" class="method-detail">
446
+ <a name="M000119"></a>
461
447
 
462
448
  <div class="method-heading">
463
- <a href="LongMath.src/M000007.html" target="Code" class="method-signature"
464
- onclick="popupCode('LongMath.src/M000007.html');return false;">
449
+ <a href="LongMath.src/M000119.html" target="Code" class="method-signature"
450
+ onclick="popupCode('LongMath.src/M000119.html');return false;">
465
451
  <span class="method-name">merge_from_words</span><span class="method-args">(words, word_len = 32)</span>
466
452
  </a>
467
453
  </div>
@@ -469,17 +455,17 @@ if the default settings for the parameters do not work correctly
469
455
  <div class="method-description">
470
456
  <p>
471
457
  concatenate numbers given in words as bit patterns (the opposite of <a
472
- href="LongMath.html#M000006">split_to_words</a>)
458
+ href="LongMath.html#M000118">split_to_words</a>)
473
459
  </p>
474
460
  </div>
475
461
  </div>
476
462
 
477
- <div id="method-M000013" class="method-detail">
478
- <a name="M000013"></a>
463
+ <div id="method-M000125" class="method-detail">
464
+ <a name="M000125"></a>
479
465
 
480
466
  <div class="method-heading">
481
- <a href="LongMath.src/M000013.html" target="Code" class="method-signature"
482
- onclick="popupCode('LongMath.src/M000013.html');return false;">
467
+ <a href="LongMath.src/M000125.html" target="Code" class="method-signature"
468
+ onclick="popupCode('LongMath.src/M000125.html');return false;">
483
469
  <span class="method-name">multiplicity_of_factor</span><span class="method-args">(x, prime_number)</span>
484
470
  </a>
485
471
  </div>
@@ -496,12 +482,12 @@ that exceed the range of Float
496
482
  </div>
497
483
  </div>
498
484
 
499
- <div id="method-M000022" class="method-detail">
500
- <a name="M000022"></a>
485
+ <div id="method-M000134" class="method-detail">
486
+ <a name="M000134"></a>
501
487
 
502
488
  <div class="method-heading">
503
- <a href="LongMath.src/M000022.html" target="Code" class="method-signature"
504
- onclick="popupCode('LongMath.src/M000022.html');return false;">
489
+ <a href="LongMath.src/M000134.html" target="Code" class="method-signature"
490
+ onclick="popupCode('LongMath.src/M000134.html');return false;">
505
491
  <span class="method-name">power</span><span class="method-args">(x, y, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
506
492
  </a>
507
493
  </div>
@@ -509,18 +495,18 @@ that exceed the range of Float
509
495
  <div class="method-description">
510
496
  <p>
511
497
  calc the power of x with exponent y to the given precision as <a
512
- href="LongMath.html#M000024">LongDecimal</a>. Only supports values of y
513
- such that exp(y) still fits into a float (y &lt;= 709)
498
+ href="LongDecimal.html">LongDecimal</a>. Only supports values of y such
499
+ that exp(y) still fits into a float (y &lt;= 709)
514
500
  </p>
515
501
  </div>
516
502
  </div>
517
503
 
518
- <div id="method-M000023" class="method-detail">
519
- <a name="M000023"></a>
504
+ <div id="method-M000135" class="method-detail">
505
+ <a name="M000135"></a>
520
506
 
521
507
  <div class="method-heading">
522
- <a href="LongMath.src/M000023.html" target="Code" class="method-signature"
523
- onclick="popupCode('LongMath.src/M000023.html');return false;">
508
+ <a href="LongMath.src/M000135.html" target="Code" class="method-signature"
509
+ onclick="popupCode('LongMath.src/M000135.html');return false;">
524
510
  <span class="method-name">power_internal</span><span class="method-args">(x, y, prec = nil, final_mode = LongDecimal::ROUND_HALF_DOWN, iprec = nil, mode = LongDecimal::ROUND_HALF_DOWN)</span>
525
511
  </a>
526
512
  </div>
@@ -535,12 +521,12 @@ if the default settings for the parameters do not work correctly
535
521
  </div>
536
522
  </div>
537
523
 
538
- <div id="method-M000006" class="method-detail">
539
- <a name="M000006"></a>
524
+ <div id="method-M000118" class="method-detail">
525
+ <a name="M000118"></a>
540
526
 
541
527
  <div class="method-heading">
542
- <a href="LongMath.src/M000006.html" target="Code" class="method-signature"
543
- onclick="popupCode('LongMath.src/M000006.html');return false;">
528
+ <a href="LongMath.src/M000118.html" target="Code" class="method-signature"
529
+ onclick="popupCode('LongMath.src/M000118.html');return false;">
544
530
  <span class="method-name">split_to_words</span><span class="method-args">(x, word_len = 32)</span>
545
531
  </a>
546
532
  </div>
@@ -549,17 +535,17 @@ if the default settings for the parameters do not work correctly
549
535
  <p>
550
536
  split number (Integer) x into parts of word_len bits each such that the
551
537
  concatenation of these parts as bit patterns is x (the opposite of <a
552
- href="LongMath.html#M000007">merge_from_words</a>)
538
+ href="LongMath.html#M000119">merge_from_words</a>)
553
539
  </p>
554
540
  </div>
555
541
  </div>
556
542
 
557
- <div id="method-M000008" class="method-detail">
558
- <a name="M000008"></a>
543
+ <div id="method-M000120" class="method-detail">
544
+ <a name="M000120"></a>
559
545
 
560
546
  <div class="method-heading">
561
- <a href="LongMath.src/M000008.html" target="Code" class="method-signature"
562
- onclick="popupCode('LongMath.src/M000008.html');return false;">
547
+ <a href="LongMath.src/M000120.html" target="Code" class="method-signature"
548
+ onclick="popupCode('LongMath.src/M000120.html');return false;">
563
549
  <span class="method-name">sqrtb</span><span class="method-args">(x)</span>
564
550
  </a>
565
551
  </div>
@@ -572,12 +558,12 @@ result is rounded to an integer y such that y**2
572
558
  </div>
573
559
  </div>
574
560
 
575
- <div id="method-M000009" class="method-detail">
576
- <a name="M000009"></a>
561
+ <div id="method-M000121" class="method-detail">
562
+ <a name="M000121"></a>
577
563
 
578
564
  <div class="method-heading">
579
- <a href="LongMath.src/M000009.html" target="Code" class="method-signature"
580
- onclick="popupCode('LongMath.src/M000009.html');return false;">
565
+ <a href="LongMath.src/M000121.html" target="Code" class="method-signature"
566
+ onclick="popupCode('LongMath.src/M000121.html');return false;">
581
567
  <span class="method-name">sqrtb_with_remainder</span><span class="method-args">(x)</span>
582
568
  </a>
583
569
  </div>
@@ -594,12 +580,12 @@ result is rounded to an integer y such that y**2
594
580
  </div>
595
581
  </div>
596
582
 
597
- <div id="method-M000010" class="method-detail">
598
- <a name="M000010"></a>
583
+ <div id="method-M000122" class="method-detail">
584
+ <a name="M000122"></a>
599
585
 
600
586
  <div class="method-heading">
601
- <a href="LongMath.src/M000010.html" target="Code" class="method-signature"
602
- onclick="popupCode('LongMath.src/M000010.html');return false;">
587
+ <a href="LongMath.src/M000122.html" target="Code" class="method-signature"
588
+ onclick="popupCode('LongMath.src/M000122.html');return false;">
603
589
  <span class="method-name">sqrtw</span><span class="method-args">(x, n = 16)</span>
604
590
  </a>
605
591
  </div>
@@ -615,12 +601,12 @@ integer y such that y**2
615
601
  </div>
616
602
  </div>
617
603
 
618
- <div id="method-M000011" class="method-detail">
619
- <a name="M000011"></a>
604
+ <div id="method-M000123" class="method-detail">
605
+ <a name="M000123"></a>
620
606
 
621
607
  <div class="method-heading">
622
- <a href="LongMath.src/M000011.html" target="Code" class="method-signature"
623
- onclick="popupCode('LongMath.src/M000011.html');return false;">
608
+ <a href="LongMath.src/M000123.html" target="Code" class="method-signature"
609
+ onclick="popupCode('LongMath.src/M000123.html');return false;">
624
610
  <span class="method-name">sqrtw_with_remainder</span><span class="method-args">(x, n = 16)</span>
625
611
  </a>
626
612
  </div>
@@ -641,46 +627,6 @@ integer y such that y**2
641
627
  </div>
642
628
  </div>
643
629
 
644
- <h3 class="section-bar">Public Instance methods</h3>
645
-
646
- <div id="method-M000024" class="method-detail">
647
- <a name="M000024"></a>
648
-
649
- <div class="method-heading">
650
- <a href="LongMath.src/M000024.html" target="Code" class="method-signature"
651
- onclick="popupCode('LongMath.src/M000024.html');return false;">
652
- <span class="method-name">LongDecimal</span><span class="method-args">(a, b = 0)</span>
653
- </a>
654
- </div>
655
-
656
- <div class="method-description">
657
- <p>
658
- Creates a <a href="LongMath.html#M000024">LongDecimal</a> number.
659
- <tt>a</tt> and <tt>b</tt> should be <a
660
- href="LongMath/Numeric.html">Numeric</a>.
661
- </p>
662
- </div>
663
- </div>
664
-
665
- <div id="method-M000025" class="method-detail">
666
- <a name="M000025"></a>
667
-
668
- <div class="method-heading">
669
- <a href="LongMath.src/M000025.html" target="Code" class="method-signature"
670
- onclick="popupCode('LongMath.src/M000025.html');return false;">
671
- <span class="method-name">LongDecimalQuot</span><span class="method-args">(first, second)</span>
672
- </a>
673
- </div>
674
-
675
- <div class="method-description">
676
- <p>
677
- construct a <a href="LongMath.html#M000025">LongDecimalQuot</a> from the
678
- given parameters 1st case: both are LongDecimals 2nd case: first is
679
- Rational, second is scale
680
- </p>
681
- </div>
682
- </div>
683
-
684
630
 
685
631
  </div>
686
632
 
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Sun Mar 19 12:51:33 CET 2006
1
+ Mon Mar 20 23:13:32 CET 2006