linmeric 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/Rakefile +31 -0
  4. data/bin/linmeric +6 -3
  5. data/doc/Archive.html +3 -2
  6. data/doc/Calculator.html +2 -1
  7. data/doc/Calculator/Evaluator.html +3 -2
  8. data/doc/Calculator/Lexer.html +3 -2
  9. data/doc/Calculator/Token.html +3 -2
  10. data/doc/Dim.html +6 -5
  11. data/doc/Filename.html +5 -4
  12. data/doc/Fixnum.html +13 -152
  13. data/doc/Float.html +6 -5
  14. data/doc/Function.html +3 -2
  15. data/doc/InputError.html +2 -1
  16. data/doc/IntNum.html +249 -0
  17. data/doc/Integer.html +114 -0
  18. data/doc/Integrators.html +2 -1
  19. data/doc/LU.html +2 -1
  20. data/doc/Lexer.html +3 -2
  21. data/doc/Linmeric.html +2 -1
  22. data/doc/Listener.html +3 -2
  23. data/doc/Matrix.html +37 -36
  24. data/doc/MyArgError.html +2 -1
  25. data/doc/NilClass.html +5 -4
  26. data/doc/Numeric.html +6 -5
  27. data/doc/Object.html +117 -0
  28. data/doc/Parser.html +9 -8
  29. data/doc/PrintError.html +2 -1
  30. data/doc/README_md.html +16 -14
  31. data/doc/Scp.html +3 -2
  32. data/doc/Sizer.html +9 -5
  33. data/doc/String.html +12 -11
  34. data/doc/Token.html +3 -2
  35. data/doc/Tool.html +2 -1
  36. data/doc/created.rid +18 -18
  37. data/doc/css/fonts.css +6 -6
  38. data/doc/index.html +22 -14
  39. data/doc/js/darkfish.js +7 -7
  40. data/doc/js/jquery.js +4 -9404
  41. data/doc/js/navigation.js.gz +0 -0
  42. data/doc/js/search_index.js +1 -1
  43. data/doc/js/search_index.js.gz +0 -0
  44. data/doc/js/searcher.js +3 -2
  45. data/doc/js/searcher.js.gz +0 -0
  46. data/doc/table_of_contents.html +23 -13
  47. data/lib/linmeric/CnGal_Matrix_class.rb +11 -5
  48. data/lib/linmeric/CnGal_new_classes.rb +14 -2
  49. data/lib/linmeric/Parser.rb +6 -6
  50. data/lib/linmeric/Sizer.rb +3 -0
  51. data/lib/linmeric/version.rb +1 -1
  52. data/lib/linmeric_bin.rb +2 -1
  53. metadata +9 -6
  54. data/doc/Instructions_en.txt +0 -207
  55. data/doc/Instructions_it.txt +0 -211
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
11
12
  </script>
12
13
 
13
14
  <script src="./js/jquery.js"></script>
@@ -58,7 +59,7 @@
58
59
  <h3>Parent</h3>
59
60
 
60
61
 
61
- <p class="link">Object
62
+ <p class="link"><a href="Object.html">Object</a>
62
63
 
63
64
  </div>
64
65
 
@@ -146,7 +147,7 @@ href="Numeric.html">Numeric</a> or <a href="Matrix.html">Matrix</a>;
146
147
 
147
148
 
148
149
  <div class="method-source-code" id="can_divide-3F-source">
149
- <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 102</span>
150
+ <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 114</span>
150
151
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_divide?</span>(<span class="ruby-identifier">obj</span>)
151
152
  (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> ((<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>))
152
153
  <span class="ruby-keyword">end</span></pre>
@@ -186,7 +187,7 @@ href="Numeric.html">Numeric</a> or <a href="Matrix.html">Matrix</a>;
186
187
 
187
188
 
188
189
  <div class="method-source-code" id="can_multiply-3F-source">
189
- <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 94</span>
190
+ <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 106</span>
190
191
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_multiply?</span>(<span class="ruby-identifier">obj</span>)
191
192
  (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> ((<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>))
192
193
  <span class="ruby-keyword">end</span></pre>
@@ -225,7 +226,7 @@ href="Numeric.html">Numeric</a>; <code>false</code> else.</p>
225
226
 
226
227
 
227
228
  <div class="method-source-code" id="similar_to-3F-source">
228
- <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 86</span>
229
+ <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 98</span>
229
230
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">similar_to?</span>(<span class="ruby-identifier">obj</span>)
230
231
  (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>)
231
232
  <span class="ruby-keyword">end</span></pre>
@@ -247,7 +248,7 @@ href="Numeric.html">Numeric</a>; <code>false</code> else.</p>
247
248
 
248
249
  <footer id="validator-badges" role="contentinfo">
249
250
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
250
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
251
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
251
252
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
252
253
  </footer>
253
254
 
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
11
12
  </script>
12
13
 
13
14
  <script src="./js/jquery.js"></script>
@@ -58,7 +59,7 @@
58
59
  <h3>Parent</h3>
59
60
 
60
61
 
61
- <p class="link">Object
62
+ <p class="link"><a href="Object.html">Object</a>
62
63
 
63
64
  </div>
64
65
 
@@ -778,7 +779,7 @@ brackets or not. <code>false</code> default</p>
778
779
 
779
780
  <footer id="validator-badges" role="contentinfo">
780
781
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
781
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
782
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
782
783
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
783
784
  </footer>
784
785
 
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
11
12
  </script>
12
13
 
13
14
  <script src="./js/jquery.js"></script>
@@ -96,7 +97,7 @@
96
97
 
97
98
  <footer id="validator-badges" role="contentinfo">
98
99
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
99
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
100
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
100
101
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
101
102
  </footer>
102
103
 
@@ -0,0 +1,249 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module IntNum - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="module">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+
59
+
60
+
61
+ <!-- Method Quickref -->
62
+ <div id="method-list-section" class="nav-section">
63
+ <h3>Methods</h3>
64
+
65
+ <ul class="link-list" role="directory">
66
+
67
+ <li ><a href="#method-i-can_divide-3F">#can_divide?</a>
68
+
69
+ <li ><a href="#method-i-can_multiply-3F">#can_multiply?</a>
70
+
71
+ <li ><a href="#method-i-similar_to-3F">#similar_to?</a>
72
+
73
+ </ul>
74
+ </div>
75
+
76
+ </div>
77
+ </nav>
78
+
79
+ <main role="main" aria-labelledby="module-IntNum">
80
+ <h1 id="module-IntNum" class="module">
81
+ module IntNum
82
+ </h1>
83
+
84
+ <section class="description">
85
+
86
+ <p>Definition of some method for Int numbers. This is included in <a
87
+ href="Integer.html">Integer</a> class (ruby_version &gt;= 2.2) or <a
88
+ href="Fixnum.html">Fixnum</a> class (ruby_version &lt;= 2.2)</p>
89
+ <dl class="rdoc-list note-list"><dt>Author
90
+ <dd>
91
+ <p>Massimiliano Dal Mas (<a
92
+ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
93
+ </dd><dt>License
94
+ <dd>
95
+ <p>Distributed under MIT license</p>
96
+ </dd></dl>
97
+
98
+ </section>
99
+
100
+
101
+
102
+
103
+ <section id="5Buntitled-5D" class="documentation-section">
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
114
+ <header>
115
+ <h3>Public Instance Methods</h3>
116
+ </header>
117
+
118
+
119
+ <div id="method-i-can_divide-3F" class="method-detail ">
120
+
121
+ <div class="method-heading">
122
+ <span class="method-name">can_divide?</span><span
123
+ class="method-args">(obj)</span>
124
+
125
+ <span class="method-click-advice">click to toggle source</span>
126
+
127
+ </div>
128
+
129
+
130
+ <div class="method-description">
131
+
132
+ <p>Checks if the fixnum value can be divided by a given object</p>
133
+ <ul><li>
134
+ <p>*<strong>argument</strong>*: object for the checking</p>
135
+ </li><li>
136
+ <p>*<strong>returns</strong>*: <code>true</code> if the object is <a
137
+ href="Numeric.html">Numeric</a> or <a href="Matrix.html">Matrix</a>;
138
+ <code>false</code> else.</p>
139
+ </li></ul>
140
+
141
+
142
+
143
+
144
+ <div class="method-source-code" id="can_divide-3F-source">
145
+ <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 69</span>
146
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_divide?</span>(<span class="ruby-identifier">obj</span>)
147
+ (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> ((<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>))
148
+ <span class="ruby-keyword">end</span></pre>
149
+ </div>
150
+
151
+ </div>
152
+
153
+
154
+
155
+
156
+ </div>
157
+
158
+
159
+ <div id="method-i-can_multiply-3F" class="method-detail ">
160
+
161
+ <div class="method-heading">
162
+ <span class="method-name">can_multiply?</span><span
163
+ class="method-args">(obj)</span>
164
+
165
+ <span class="method-click-advice">click to toggle source</span>
166
+
167
+ </div>
168
+
169
+
170
+ <div class="method-description">
171
+
172
+ <p>Checks if the fixnum value can be multiplied by a given object</p>
173
+ <ul><li>
174
+ <p>*<strong>argument</strong>*: object for the checking</p>
175
+ </li><li>
176
+ <p>*<strong>returns</strong>*: <code>true</code> if the object is <a
177
+ href="Numeric.html">Numeric</a> or <a href="Matrix.html">Matrix</a>;
178
+ <code>false</code> else.</p>
179
+ </li></ul>
180
+
181
+
182
+
183
+
184
+ <div class="method-source-code" id="can_multiply-3F-source">
185
+ <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 61</span>
186
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_multiply?</span>(<span class="ruby-identifier">obj</span>)
187
+ (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> ((<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>))
188
+ <span class="ruby-keyword">end</span></pre>
189
+ </div>
190
+
191
+ </div>
192
+
193
+
194
+
195
+
196
+ </div>
197
+
198
+
199
+ <div id="method-i-similar_to-3F" class="method-detail ">
200
+
201
+ <div class="method-heading">
202
+ <span class="method-name">similar_to?</span><span
203
+ class="method-args">(obj)</span>
204
+
205
+ <span class="method-click-advice">click to toggle source</span>
206
+
207
+ </div>
208
+
209
+
210
+ <div class="method-description">
211
+
212
+ <p>Compares the value with another object</p>
213
+ <ul><li>
214
+ <p>*<strong>argument</strong>*: object for the comparison</p>
215
+ </li><li>
216
+ <p>*<strong>returns</strong>*: <code>true</code> if the object is a <a
217
+ href="Numeric.html">Numeric</a>; <code>false</code> else.</p>
218
+ </li></ul>
219
+
220
+
221
+
222
+
223
+ <div class="method-source-code" id="similar_to-3F-source">
224
+ <pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 53</span>
225
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">similar_to?</span>(<span class="ruby-identifier">obj</span>)
226
+ (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>)
227
+ <span class="ruby-keyword">end</span></pre>
228
+ </div>
229
+
230
+ </div>
231
+
232
+
233
+
234
+
235
+ </div>
236
+
237
+
238
+ </section>
239
+
240
+ </section>
241
+ </main>
242
+
243
+
244
+ <footer id="validator-badges" role="contentinfo">
245
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
246
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
247
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
248
+ </footer>
249
+
@@ -0,0 +1,114 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Integer - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="class">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+ <div id="parent-class-section" class="nav-section">
59
+ <h3>Parent</h3>
60
+
61
+
62
+ <p class="link"><a href="Object.html">Object</a>
63
+
64
+ </div>
65
+
66
+ <div id="includes-section" class="nav-section">
67
+ <h3>Included Modules</h3>
68
+
69
+ <ul class="link-list">
70
+
71
+
72
+ <li><a class="include" href="IntNum.html">IntNum</a>
73
+
74
+
75
+ </ul>
76
+ </div>
77
+
78
+
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Integer">
84
+ <h1 id="class-Integer" class="class">
85
+ class Integer
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ </section>
91
+
92
+
93
+
94
+
95
+ <section id="5Buntitled-5D" class="documentation-section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ </section>
106
+ </main>
107
+
108
+
109
+ <footer id="validator-badges" role="contentinfo">
110
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
111
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
112
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
113
+ </footer>
114
+