long-decimal 0.00.09 → 0.00.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/doc/classes/LongDecimalRoundingMode.html +2 -3
- data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.html +5 -5
- data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.src/M000128.html +22 -0
- data/doc/classes/LongMath.html +237 -91
- data/doc/classes/LongMath.src/M000122.html +73 -0
- data/doc/classes/LongMath.src/M000123.html +35 -0
- data/doc/classes/LongMath.src/M000124.html +50 -0
- data/doc/classes/LongMath.src/M000125.html +47 -0
- data/doc/classes/LongMath.src/M000126.html +21 -0
- data/doc/classes/LongMath.src/M000127.html +108 -0
- data/doc/created.rid +1 -1
- data/doc/dot/f_0.dot +44 -44
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/m_0_0.dot +50 -7
- data/doc/dot/m_0_0.png +0 -0
- data/doc/files/lib/longdecimal_rb.html +6 -52
- data/doc/fr_class_index.html +3 -3
- data/doc/fr_method_index.html +136 -128
- data/lib/longdecimal.rb +300 -37
- data/test/testlongdecimal.rb +98 -8
- metadata +9 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.00.
|
1
|
+
0.00.10
|
@@ -82,9 +82,8 @@
|
|
82
82
|
|
83
83
|
<div id="description">
|
84
84
|
<p>
|
85
|
-
define rounding modes to be used for
|
86
|
-
|
87
|
-
"enum" in C/C++
|
85
|
+
define rounding modes to be used for LongDecimal this serves the purpose of
|
86
|
+
an "enum" in C/C++
|
88
87
|
</p>
|
89
88
|
|
90
89
|
</div>
|
@@ -94,7 +94,7 @@
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
97
|
+
<a href="#M000136"><=></a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -123,12 +123,12 @@
|
|
123
123
|
<div id="methods">
|
124
124
|
<h3 class="section-bar">Public Instance methods</h3>
|
125
125
|
|
126
|
-
<div id="method-
|
127
|
-
<a name="
|
126
|
+
<div id="method-M000136" class="method-detail">
|
127
|
+
<a name="M000136"></a>
|
128
128
|
|
129
129
|
<div class="method-heading">
|
130
|
-
<a href="RoundingModeClass.src/
|
131
|
-
onclick="popupCode('RoundingModeClass.src/
|
130
|
+
<a href="RoundingModeClass.src/M000136.html" target="Code" class="method-signature"
|
131
|
+
onclick="popupCode('RoundingModeClass.src/M000136.html');return false;">
|
132
132
|
<span class="method-name"><=></span><span class="method-args">(o)</span>
|
133
133
|
</a>
|
134
134
|
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title><=> (LongDecimalRoundingMode::RoundingModeClass)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/longdecimal.rb, line 26</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">o</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">respond_to?</span><span class="ruby-identifier">:num</span>
|
16
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">num</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">num</span>
|
17
|
+
<span class="ruby-keyword kw">else</span>
|
18
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">num</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">o</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
data/doc/classes/LongMath.html
CHANGED
@@ -73,18 +73,21 @@
|
|
73
73
|
<div id="contextContent">
|
74
74
|
<div id="diagram">
|
75
75
|
<map id="map" name="map">
|
76
|
-
<area shape="RECT" coords="
|
77
|
-
<area shape="RECT" coords="
|
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">
|
78
81
|
</map>
|
79
82
|
<img src="../dot/m_0_0.png" usemap="#map" border=0 alt="Module: LongMath">
|
80
83
|
</div>
|
81
84
|
|
82
85
|
<div id="description">
|
83
86
|
<p>
|
84
|
-
helper functions to support <a href="
|
85
|
-
<a href="
|
86
|
-
href="
|
87
|
-
href="
|
87
|
+
helper functions to support <a href="LongMath.html#M000022">LongDecimal</a>
|
88
|
+
and <a href="LongMath.html#M000023">LongDecimalQuot</a> functions for <a
|
89
|
+
href="LongMath.html#M000022">LongDecimal</a> that do not go as methods of
|
90
|
+
<a href="LongMath.html#M000022">LongDecimal</a>
|
88
91
|
</p>
|
89
92
|
|
90
93
|
</div>
|
@@ -96,22 +99,29 @@ href="LongDecimal.html">LongDecimal</a>
|
|
96
99
|
<h3 class="section-bar">Methods</h3>
|
97
100
|
|
98
101
|
<div class="name-list">
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
102
|
+
<a href="#M000022">LongDecimal</a>
|
103
|
+
<a href="#M000023">LongDecimalQuot</a>
|
104
|
+
<a href="#M000014">calc_pi</a>
|
105
|
+
<a href="#M000002">check_is_int</a>
|
106
|
+
<a href="#M000003">check_is_ld</a>
|
107
|
+
<a href="#M000005">check_is_mode</a>
|
108
|
+
<a href="#M000004">check_is_prec</a>
|
109
|
+
<a href="#M000001">check_word_len</a>
|
110
|
+
<a href="#M000015">exp</a>
|
111
|
+
<a href="#M000017">exp_internal</a>
|
112
|
+
<a href="#M000012">gcd_with_high_power</a>
|
113
|
+
<a href="#M000018">log</a>
|
114
|
+
<a href="#M000019">log10</a>
|
115
|
+
<a href="#M000020">log2</a>
|
116
|
+
<a href="#M000021">log_internal</a>
|
117
|
+
<a href="#M000007">merge_from_words</a>
|
118
|
+
<a href="#M000013">multiplicity_of_factor</a>
|
119
|
+
<a href="#M000016">power</a>
|
120
|
+
<a href="#M000006">split_to_words</a>
|
121
|
+
<a href="#M000008">sqrtb</a>
|
122
|
+
<a href="#M000009">sqrtb_with_remainder</a>
|
123
|
+
<a href="#M000010">sqrtw</a>
|
124
|
+
<a href="#M000011">sqrtw_with_remainder</a>
|
115
125
|
</div>
|
116
126
|
</div>
|
117
127
|
|
@@ -129,6 +139,14 @@ href="LongDecimal.html">LongDecimal</a>
|
|
129
139
|
|
130
140
|
<div id="section">
|
131
141
|
|
142
|
+
<div id="class-list">
|
143
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
144
|
+
|
145
|
+
Class <a href="LongMath/LongDecimal.html" class="link">LongMath::LongDecimal</a><br />
|
146
|
+
Class <a href="LongMath/LongDecimalQuot.html" class="link">LongMath::LongDecimalQuot</a><br />
|
147
|
+
Class <a href="LongMath/Numeric.html" class="link">LongMath::Numeric</a><br />
|
148
|
+
|
149
|
+
</div>
|
132
150
|
|
133
151
|
<div id="constants-list">
|
134
152
|
<h3 class="section-bar">Constants</h3>
|
@@ -158,12 +176,12 @@ href="LongDecimal.html">LongDecimal</a>
|
|
158
176
|
<div id="methods">
|
159
177
|
<h3 class="section-bar">Public Class methods</h3>
|
160
178
|
|
161
|
-
<div id="method-
|
162
|
-
<a name="
|
179
|
+
<div id="method-M000014" class="method-detail">
|
180
|
+
<a name="M000014"></a>
|
163
181
|
|
164
182
|
<div class="method-heading">
|
165
|
-
<a href="LongMath.src/
|
166
|
-
onclick="popupCode('LongMath.src/
|
183
|
+
<a href="LongMath.src/M000014.html" target="Code" class="method-signature"
|
184
|
+
onclick="popupCode('LongMath.src/M000014.html');return false;">
|
167
185
|
<span class="method-name">calc_pi</span><span class="method-args">(prec, final_mode = LongDecimal::ROUND_HALF_DOWN)</span>
|
168
186
|
</a>
|
169
187
|
</div>
|
@@ -179,12 +197,12 @@ easter egg ;-) )
|
|
179
197
|
</div>
|
180
198
|
</div>
|
181
199
|
|
182
|
-
<div id="method-
|
183
|
-
<a name="
|
200
|
+
<div id="method-M000002" class="method-detail">
|
201
|
+
<a name="M000002"></a>
|
184
202
|
|
185
203
|
<div class="method-heading">
|
186
|
-
<a href="LongMath.src/
|
187
|
-
onclick="popupCode('LongMath.src/
|
204
|
+
<a href="LongMath.src/M000002.html" target="Code" class="method-signature"
|
205
|
+
onclick="popupCode('LongMath.src/M000002.html');return false;">
|
188
206
|
<span class="method-name">check_is_int</span><span class="method-args">(x, name="x")</span>
|
189
207
|
</a>
|
190
208
|
</div>
|
@@ -196,12 +214,12 @@ helper method: checks if parameter x is an Integer
|
|
196
214
|
</div>
|
197
215
|
</div>
|
198
216
|
|
199
|
-
<div id="method-
|
200
|
-
<a name="
|
217
|
+
<div id="method-M000003" class="method-detail">
|
218
|
+
<a name="M000003"></a>
|
201
219
|
|
202
220
|
<div class="method-heading">
|
203
|
-
<a href="LongMath.src/
|
204
|
-
onclick="popupCode('LongMath.src/
|
221
|
+
<a href="LongMath.src/M000003.html" target="Code" class="method-signature"
|
222
|
+
onclick="popupCode('LongMath.src/M000003.html');return false;">
|
205
223
|
<span class="method-name">check_is_ld</span><span class="method-args">(x, name="x")</span>
|
206
224
|
</a>
|
207
225
|
</div>
|
@@ -209,17 +227,17 @@ helper method: checks if parameter x is an Integer
|
|
209
227
|
<div class="method-description">
|
210
228
|
<p>
|
211
229
|
helper method: checks if parameter x is a <a
|
212
|
-
href="
|
230
|
+
href="LongMath.html#M000022">LongDecimal</a>
|
213
231
|
</p>
|
214
232
|
</div>
|
215
233
|
</div>
|
216
234
|
|
217
|
-
<div id="method-
|
218
|
-
<a name="
|
235
|
+
<div id="method-M000005" class="method-detail">
|
236
|
+
<a name="M000005"></a>
|
219
237
|
|
220
238
|
<div class="method-heading">
|
221
|
-
<a href="LongMath.src/
|
222
|
-
onclick="popupCode('LongMath.src/
|
239
|
+
<a href="LongMath.src/M000005.html" target="Code" class="method-signature"
|
240
|
+
onclick="popupCode('LongMath.src/M000005.html');return false;">
|
223
241
|
<span class="method-name">check_is_mode</span><span class="method-args">(mode, name="mode")</span>
|
224
242
|
</a>
|
225
243
|
</div>
|
@@ -227,17 +245,17 @@ href="LongDecimal.html">LongDecimal</a>
|
|
227
245
|
<div class="method-description">
|
228
246
|
<p>
|
229
247
|
helper method: checks if parameter x is a <a
|
230
|
-
href="
|
248
|
+
href="LongMath.html#M000022">LongDecimal</a>
|
231
249
|
</p>
|
232
250
|
</div>
|
233
251
|
</div>
|
234
252
|
|
235
|
-
<div id="method-
|
236
|
-
<a name="
|
253
|
+
<div id="method-M000004" class="method-detail">
|
254
|
+
<a name="M000004"></a>
|
237
255
|
|
238
256
|
<div class="method-heading">
|
239
|
-
<a href="LongMath.src/
|
240
|
-
onclick="popupCode('LongMath.src/
|
257
|
+
<a href="LongMath.src/M000004.html" target="Code" class="method-signature"
|
258
|
+
onclick="popupCode('LongMath.src/M000004.html');return false;">
|
241
259
|
<span class="method-name">check_is_prec</span><span class="method-args">(prec, name="prec")</span>
|
242
260
|
</a>
|
243
261
|
</div>
|
@@ -245,17 +263,17 @@ href="LongDecimal.html">LongDecimal</a>
|
|
245
263
|
<div class="method-description">
|
246
264
|
<p>
|
247
265
|
helper method: checks if parameter x is a <a
|
248
|
-
href="
|
266
|
+
href="LongMath.html#M000022">LongDecimal</a>
|
249
267
|
</p>
|
250
268
|
</div>
|
251
269
|
</div>
|
252
270
|
|
253
|
-
<div id="method-
|
254
|
-
<a name="
|
271
|
+
<div id="method-M000001" class="method-detail">
|
272
|
+
<a name="M000001"></a>
|
255
273
|
|
256
274
|
<div class="method-heading">
|
257
|
-
<a href="LongMath.src/
|
258
|
-
onclick="popupCode('LongMath.src/
|
275
|
+
<a href="LongMath.src/M000001.html" target="Code" class="method-signature"
|
276
|
+
onclick="popupCode('LongMath.src/M000001.html');return false;">
|
259
277
|
<span class="method-name">check_word_len</span><span class="method-args">(word_len, name="word_len")</span>
|
260
278
|
</a>
|
261
279
|
</div>
|
@@ -268,12 +286,12 @@ into parts
|
|
268
286
|
</div>
|
269
287
|
</div>
|
270
288
|
|
271
|
-
<div id="method-
|
272
|
-
<a name="
|
289
|
+
<div id="method-M000015" class="method-detail">
|
290
|
+
<a name="M000015"></a>
|
273
291
|
|
274
292
|
<div class="method-heading">
|
275
|
-
<a href="LongMath.src/
|
276
|
-
onclick="popupCode('LongMath.src/
|
293
|
+
<a href="LongMath.src/M000015.html" target="Code" class="method-signature"
|
294
|
+
onclick="popupCode('LongMath.src/M000015.html');return false;">
|
277
295
|
<span class="method-name">exp</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
|
278
296
|
</a>
|
279
297
|
</div>
|
@@ -281,18 +299,18 @@ into parts
|
|
281
299
|
<div class="method-description">
|
282
300
|
<p>
|
283
301
|
calc the exponential function of x to the given precision as <a
|
284
|
-
href="
|
285
|
-
that the result still fits into a float (x <= 709)
|
302
|
+
href="LongMath.html#M000022">LongDecimal</a>. Only supports values of x
|
303
|
+
such that the result still fits into a float (x <= 709)
|
286
304
|
</p>
|
287
305
|
</div>
|
288
306
|
</div>
|
289
307
|
|
290
|
-
<div id="method-
|
291
|
-
<a name="
|
308
|
+
<div id="method-M000017" class="method-detail">
|
309
|
+
<a name="M000017"></a>
|
292
310
|
|
293
311
|
<div class="method-heading">
|
294
|
-
<a href="LongMath.src/
|
295
|
-
onclick="popupCode('LongMath.src/
|
312
|
+
<a href="LongMath.src/M000017.html" target="Code" class="method-signature"
|
313
|
+
onclick="popupCode('LongMath.src/M000017.html');return false;">
|
296
314
|
<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>
|
297
315
|
</a>
|
298
316
|
</div>
|
@@ -307,12 +325,12 @@ if the default settings for the parameters do not work correctly
|
|
307
325
|
</div>
|
308
326
|
</div>
|
309
327
|
|
310
|
-
<div id="method-
|
311
|
-
<a name="
|
328
|
+
<div id="method-M000012" class="method-detail">
|
329
|
+
<a name="M000012"></a>
|
312
330
|
|
313
331
|
<div class="method-heading">
|
314
|
-
<a href="LongMath.src/
|
315
|
-
onclick="popupCode('LongMath.src/
|
332
|
+
<a href="LongMath.src/M000012.html" target="Code" class="method-signature"
|
333
|
+
onclick="popupCode('LongMath.src/M000012.html');return false;">
|
316
334
|
<span class="method-name">gcd_with_high_power</span><span class="method-args">(x, b)</span>
|
317
335
|
</a>
|
318
336
|
</div>
|
@@ -325,12 +343,86 @@ that gcd(x, b^m) = gcd(x, b^n) for all m, n > n0
|
|
325
343
|
</div>
|
326
344
|
</div>
|
327
345
|
|
328
|
-
<div id="method-
|
329
|
-
<a name="
|
346
|
+
<div id="method-M000018" class="method-detail">
|
347
|
+
<a name="M000018"></a>
|
330
348
|
|
331
349
|
<div class="method-heading">
|
332
|
-
<a href="LongMath.src/
|
333
|
-
onclick="popupCode('LongMath.src/
|
350
|
+
<a href="LongMath.src/M000018.html" target="Code" class="method-signature"
|
351
|
+
onclick="popupCode('LongMath.src/M000018.html');return false;">
|
352
|
+
<span class="method-name">log</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
|
353
|
+
</a>
|
354
|
+
</div>
|
355
|
+
|
356
|
+
<div class="method-description">
|
357
|
+
<p>
|
358
|
+
calc the natural logarithm function of x to the given precision as <a
|
359
|
+
href="LongMath.html#M000022">LongDecimal</a>.
|
360
|
+
</p>
|
361
|
+
</div>
|
362
|
+
</div>
|
363
|
+
|
364
|
+
<div id="method-M000019" class="method-detail">
|
365
|
+
<a name="M000019"></a>
|
366
|
+
|
367
|
+
<div class="method-heading">
|
368
|
+
<a href="LongMath.src/M000019.html" target="Code" class="method-signature"
|
369
|
+
onclick="popupCode('LongMath.src/M000019.html');return false;">
|
370
|
+
<span class="method-name">log10</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
|
371
|
+
</a>
|
372
|
+
</div>
|
373
|
+
|
374
|
+
<div class="method-description">
|
375
|
+
<p>
|
376
|
+
calc the base 10 logarithm of x to the given precision as <a
|
377
|
+
href="LongMath.html#M000022">LongDecimal</a>.
|
378
|
+
</p>
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<div id="method-M000020" class="method-detail">
|
383
|
+
<a name="M000020"></a>
|
384
|
+
|
385
|
+
<div class="method-heading">
|
386
|
+
<a href="LongMath.src/M000020.html" target="Code" class="method-signature"
|
387
|
+
onclick="popupCode('LongMath.src/M000020.html');return false;">
|
388
|
+
<span class="method-name">log2</span><span class="method-args">(x, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
|
389
|
+
</a>
|
390
|
+
</div>
|
391
|
+
|
392
|
+
<div class="method-description">
|
393
|
+
<p>
|
394
|
+
calc the base 2 logarithm of x to the given precision as <a
|
395
|
+
href="LongMath.html#M000022">LongDecimal</a>.
|
396
|
+
</p>
|
397
|
+
</div>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<div id="method-M000021" class="method-detail">
|
401
|
+
<a name="M000021"></a>
|
402
|
+
|
403
|
+
<div class="method-heading">
|
404
|
+
<a href="LongMath.src/M000021.html" target="Code" class="method-signature"
|
405
|
+
onclick="popupCode('LongMath.src/M000021.html');return false;">
|
406
|
+
<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>
|
407
|
+
</a>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
<div class="method-description">
|
411
|
+
<p>
|
412
|
+
internal functionality of log. exposes some more parameters, that should
|
413
|
+
usually be set to defaut values, in order to allow better testing. do not
|
414
|
+
actually call this method unless you are testing log. create a bug report,
|
415
|
+
if the default settings for the parameters do not work correctly
|
416
|
+
</p>
|
417
|
+
</div>
|
418
|
+
</div>
|
419
|
+
|
420
|
+
<div id="method-M000007" class="method-detail">
|
421
|
+
<a name="M000007"></a>
|
422
|
+
|
423
|
+
<div class="method-heading">
|
424
|
+
<a href="LongMath.src/M000007.html" target="Code" class="method-signature"
|
425
|
+
onclick="popupCode('LongMath.src/M000007.html');return false;">
|
334
426
|
<span class="method-name">merge_from_words</span><span class="method-args">(words, word_len = 32)</span>
|
335
427
|
</a>
|
336
428
|
</div>
|
@@ -342,12 +434,12 @@ concatenate numbers given in words as bit patterns
|
|
342
434
|
</div>
|
343
435
|
</div>
|
344
436
|
|
345
|
-
<div id="method-
|
346
|
-
<a name="
|
437
|
+
<div id="method-M000013" class="method-detail">
|
438
|
+
<a name="M000013"></a>
|
347
439
|
|
348
440
|
<div class="method-heading">
|
349
|
-
<a href="LongMath.src/
|
350
|
-
onclick="popupCode('LongMath.src/
|
441
|
+
<a href="LongMath.src/M000013.html" target="Code" class="method-signature"
|
442
|
+
onclick="popupCode('LongMath.src/M000013.html');return false;">
|
351
443
|
<span class="method-name">multiplicity_of_factor</span><span class="method-args">(x, prime_number)</span>
|
352
444
|
</a>
|
353
445
|
</div>
|
@@ -361,12 +453,31 @@ of Float
|
|
361
453
|
</div>
|
362
454
|
</div>
|
363
455
|
|
364
|
-
<div id="method-
|
365
|
-
<a name="
|
456
|
+
<div id="method-M000016" class="method-detail">
|
457
|
+
<a name="M000016"></a>
|
458
|
+
|
459
|
+
<div class="method-heading">
|
460
|
+
<a href="LongMath.src/M000016.html" target="Code" class="method-signature"
|
461
|
+
onclick="popupCode('LongMath.src/M000016.html');return false;">
|
462
|
+
<span class="method-name">power</span><span class="method-args">(x, y, prec, mode = LongDecimal::ROUND_HALF_DOWN)</span>
|
463
|
+
</a>
|
464
|
+
</div>
|
465
|
+
|
466
|
+
<div class="method-description">
|
467
|
+
<p>
|
468
|
+
calc the power of x with exponent y to the given precision as <a
|
469
|
+
href="LongMath.html#M000022">LongDecimal</a>. Only supports values of y
|
470
|
+
such that exp(y) still fits into a float (y <= 709)
|
471
|
+
</p>
|
472
|
+
</div>
|
473
|
+
</div>
|
474
|
+
|
475
|
+
<div id="method-M000006" class="method-detail">
|
476
|
+
<a name="M000006"></a>
|
366
477
|
|
367
478
|
<div class="method-heading">
|
368
|
-
<a href="LongMath.src/
|
369
|
-
onclick="popupCode('LongMath.src/
|
479
|
+
<a href="LongMath.src/M000006.html" target="Code" class="method-signature"
|
480
|
+
onclick="popupCode('LongMath.src/M000006.html');return false;">
|
370
481
|
<span class="method-name">split_to_words</span><span class="method-args">(x, word_len = 32)</span>
|
371
482
|
</a>
|
372
483
|
</div>
|
@@ -379,12 +490,12 @@ of these parts as bit patterns is x
|
|
379
490
|
</div>
|
380
491
|
</div>
|
381
492
|
|
382
|
-
<div id="method-
|
383
|
-
<a name="
|
493
|
+
<div id="method-M000008" class="method-detail">
|
494
|
+
<a name="M000008"></a>
|
384
495
|
|
385
496
|
<div class="method-heading">
|
386
|
-
<a href="LongMath.src/
|
387
|
-
onclick="popupCode('LongMath.src/
|
497
|
+
<a href="LongMath.src/M000008.html" target="Code" class="method-signature"
|
498
|
+
onclick="popupCode('LongMath.src/M000008.html');return false;">
|
388
499
|
<span class="method-name">sqrtb</span><span class="method-args">(x)</span>
|
389
500
|
</a>
|
390
501
|
</div>
|
@@ -396,12 +507,12 @@ calculate the square root of an integer using bitwise algorithm
|
|
396
507
|
</div>
|
397
508
|
</div>
|
398
509
|
|
399
|
-
<div id="method-
|
400
|
-
<a name="
|
510
|
+
<div id="method-M000009" class="method-detail">
|
511
|
+
<a name="M000009"></a>
|
401
512
|
|
402
513
|
<div class="method-heading">
|
403
|
-
<a href="LongMath.src/
|
404
|
-
onclick="popupCode('LongMath.src/
|
514
|
+
<a href="LongMath.src/M000009.html" target="Code" class="method-signature"
|
515
|
+
onclick="popupCode('LongMath.src/M000009.html');return false;">
|
405
516
|
<span class="method-name">sqrtb_with_remainder</span><span class="method-args">(x)</span>
|
406
517
|
</a>
|
407
518
|
</div>
|
@@ -415,12 +526,12 @@ well for relatively small values of x.
|
|
415
526
|
</div>
|
416
527
|
</div>
|
417
528
|
|
418
|
-
<div id="method-
|
419
|
-
<a name="
|
529
|
+
<div id="method-M000010" class="method-detail">
|
530
|
+
<a name="M000010"></a>
|
420
531
|
|
421
532
|
<div class="method-heading">
|
422
|
-
<a href="LongMath.src/
|
423
|
-
onclick="popupCode('LongMath.src/
|
533
|
+
<a href="LongMath.src/M000010.html" target="Code" class="method-signature"
|
534
|
+
onclick="popupCode('LongMath.src/M000010.html');return false;">
|
424
535
|
<span class="method-name">sqrtw</span><span class="method-args">(x, n = 16)</span>
|
425
536
|
</a>
|
426
537
|
</div>
|
@@ -432,12 +543,12 @@ calculate the square root of an integer using larger chunks of the number
|
|
432
543
|
</div>
|
433
544
|
</div>
|
434
545
|
|
435
|
-
<div id="method-
|
436
|
-
<a name="
|
546
|
+
<div id="method-M000011" class="method-detail">
|
547
|
+
<a name="M000011"></a>
|
437
548
|
|
438
549
|
<div class="method-heading">
|
439
|
-
<a href="LongMath.src/
|
440
|
-
onclick="popupCode('LongMath.src/
|
550
|
+
<a href="LongMath.src/M000011.html" target="Code" class="method-signature"
|
551
|
+
onclick="popupCode('LongMath.src/M000011.html');return false;">
|
441
552
|
<span class="method-name">sqrtw_with_remainder</span><span class="method-args">(x, n = 16)</span>
|
442
553
|
</a>
|
443
554
|
</div>
|
@@ -453,6 +564,41 @@ algorithm would also work for other values.
|
|
453
564
|
</div>
|
454
565
|
</div>
|
455
566
|
|
567
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
568
|
+
|
569
|
+
<div id="method-M000022" class="method-detail">
|
570
|
+
<a name="M000022"></a>
|
571
|
+
|
572
|
+
<div class="method-heading">
|
573
|
+
<a href="LongMath.src/M000022.html" target="Code" class="method-signature"
|
574
|
+
onclick="popupCode('LongMath.src/M000022.html');return false;">
|
575
|
+
<span class="method-name">LongDecimal</span><span class="method-args">(a, b = 0)</span>
|
576
|
+
</a>
|
577
|
+
</div>
|
578
|
+
|
579
|
+
<div class="method-description">
|
580
|
+
<p>
|
581
|
+
Creates a <a href="LongMath.html#M000022">LongDecimal</a> number.
|
582
|
+
<tt>a</tt> and <tt>b</tt> should be <a
|
583
|
+
href="LongMath/Numeric.html">Numeric</a>.
|
584
|
+
</p>
|
585
|
+
</div>
|
586
|
+
</div>
|
587
|
+
|
588
|
+
<div id="method-M000023" class="method-detail">
|
589
|
+
<a name="M000023"></a>
|
590
|
+
|
591
|
+
<div class="method-heading">
|
592
|
+
<a href="LongMath.src/M000023.html" target="Code" class="method-signature"
|
593
|
+
onclick="popupCode('LongMath.src/M000023.html');return false;">
|
594
|
+
<span class="method-name">LongDecimalQuot</span><span class="method-args">(first, second)</span>
|
595
|
+
</a>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method-description">
|
599
|
+
</div>
|
600
|
+
</div>
|
601
|
+
|
456
602
|
|
457
603
|
</div>
|
458
604
|
|