p10lppt13 1.0.0 → 1.1.0

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 (131) hide show
  1. data/.gitignore +0 -2
  2. data/.travis.yml +0 -1
  3. data/Gemfile.lock +1 -1
  4. data/lib/doc/Densa.html +451 -0
  5. data/lib/doc/Dispersa.html +462 -0
  6. data/lib/doc/Fraccion.html +1023 -0
  7. data/lib/doc/Matriz.html +985 -0
  8. data/lib/doc/Object.html +349 -0
  9. data/lib/doc/P10lppt13.html +303 -0
  10. data/lib/doc/VectorDisperso.html +444 -0
  11. data/lib/doc/created.rid +89 -0
  12. data/lib/doc/doc/Densa_html.html +659 -0
  13. data/lib/doc/doc/Dispersa_html.html +669 -0
  14. data/lib/doc/doc/Fraccion_html.html +1193 -0
  15. data/lib/doc/doc/Matriz_html.html +1159 -0
  16. data/lib/doc/doc/Object_html.html +557 -0
  17. data/lib/doc/doc/P10lppt13_html.html +509 -0
  18. data/lib/doc/doc/VectorDisperso_html.html +646 -0
  19. data/lib/doc/doc/created_rid.html +336 -0
  20. data/lib/doc/doc/doc/Densa_html_html.html +908 -0
  21. data/lib/doc/doc/doc/Dispersa_html_html.html +949 -0
  22. data/lib/doc/doc/doc/Fraccion_html_html.html +1713 -0
  23. data/lib/doc/doc/doc/Matriz_html_html.html +1684 -0
  24. data/lib/doc/doc/doc/Object_html_html.html +816 -0
  25. data/lib/doc/doc/doc/P10lppt13_html_html.html +754 -0
  26. data/lib/doc/doc/doc/VectorDisperso_html_html.html +887 -0
  27. data/lib/doc/doc/doc/created_rid_html.html +536 -0
  28. data/lib/doc/doc/doc/doc/Densa_html_html_html.html +1191 -0
  29. data/lib/doc/doc/doc/doc/Dispersa_html_html_html.html +1260 -0
  30. data/lib/doc/doc/doc/doc/Fraccion_html_html_html.html +2174 -0
  31. data/lib/doc/doc/doc/doc/Matriz_html_html_html.html +2235 -0
  32. data/lib/doc/doc/doc/doc/Object_html_html_html.html +1099 -0
  33. data/lib/doc/doc/doc/doc/P10lppt13_html_html_html.html +1028 -0
  34. data/lib/doc/doc/doc/doc/VectorDisperso_html_html_html.html +1168 -0
  35. data/lib/doc/doc/doc/doc/created_rid_html_html.html +722 -0
  36. data/lib/doc/doc/doc/doc/doc/Densa_html_html_html_html.html +1424 -0
  37. data/lib/doc/doc/doc/doc/doc/Dispersa_html_html_html_html.html +1502 -0
  38. data/lib/doc/doc/doc/doc/doc/Fraccion_html_html_html_html.html +2619 -0
  39. data/lib/doc/doc/doc/doc/doc/Matriz_html_html_html_html.html +2764 -0
  40. data/lib/doc/doc/doc/doc/doc/Object_html_html_html_html.html +1315 -0
  41. data/lib/doc/doc/doc/doc/doc/P10lppt13_html_html_html_html.html +1227 -0
  42. data/lib/doc/doc/doc/doc/doc/VectorDisperso_html_html_html_html.html +1403 -0
  43. data/lib/doc/doc/doc/doc/doc/created_rid_html_html_html.html +920 -0
  44. data/lib/doc/doc/doc/doc/doc/doc/created_rid_html_html_html_html.html +1089 -0
  45. data/lib/doc/doc/doc/doc/doc/fraccion_rb~_html_html_html_html.html +1754 -0
  46. data/lib/doc/doc/doc/doc/doc/index_html_html_html_html.html +1086 -0
  47. data/lib/doc/doc/doc/doc/doc/js/darkfish_js_html_html_html.html +1207 -0
  48. data/lib/doc/doc/doc/doc/doc/js/jquery_js_html_html_html.html +3210 -0
  49. data/lib/doc/doc/doc/doc/doc/js/navigation_js_html_html_html.html +1122 -0
  50. data/lib/doc/doc/doc/doc/doc/js/search_index_js_html_html_html.html +1031 -0
  51. data/lib/doc/doc/doc/doc/doc/js/search_js_html_html_html.html +1058 -0
  52. data/lib/doc/doc/doc/doc/doc/js/searcher_js_html_html_html.html +1295 -0
  53. data/lib/doc/doc/doc/doc/doc/rdoc_css_html_html_html.html +1827 -0
  54. data/lib/doc/doc/doc/doc/doc/table_of_contents_html_html_html_html.html +1727 -0
  55. data/lib/doc/doc/doc/doc/fraccion_rb~_html_html_html.html +1509 -0
  56. data/lib/doc/doc/doc/doc/index_html_html_html.html +911 -0
  57. data/lib/doc/doc/doc/doc/js/darkfish_js_html_html.html +920 -0
  58. data/lib/doc/doc/doc/doc/js/jquery_js_html_html.html +2908 -0
  59. data/lib/doc/doc/doc/doc/js/navigation_js_html_html.html +852 -0
  60. data/lib/doc/doc/doc/doc/js/search_index_js_html_html.html +889 -0
  61. data/lib/doc/doc/doc/doc/js/search_js_html_html.html +802 -0
  62. data/lib/doc/doc/doc/doc/js/searcher_js_html_html.html +975 -0
  63. data/lib/doc/doc/doc/doc/p10lppt13_rb~_html_html_html.html +1996 -0
  64. data/lib/doc/doc/doc/doc/rdoc_css_html_html.html +1443 -0
  65. data/lib/doc/doc/doc/doc/table_of_contents_html_html_html.html +1503 -0
  66. data/lib/doc/doc/doc/fraccion_rb~_html_html.html +1052 -0
  67. data/lib/doc/doc/doc/index_html_html.html +669 -0
  68. data/lib/doc/doc/doc/js/darkfish_js_html.html +667 -0
  69. data/lib/doc/doc/doc/js/jquery_js_html.html +213 -0
  70. data/lib/doc/doc/doc/js/navigation_js_html.html +557 -0
  71. data/lib/doc/doc/doc/js/search_index_js_html.html +589 -0
  72. data/lib/doc/doc/doc/js/search_js_html.html +499 -0
  73. data/lib/doc/doc/doc/js/searcher_js_html.html +655 -0
  74. data/lib/doc/doc/doc/p10lppt13_rb~_html_html.html +1361 -0
  75. data/lib/doc/doc/doc/rdoc_css_html.html +1039 -0
  76. data/lib/doc/doc/doc/table_of_contents_html_html.html +1134 -0
  77. data/lib/doc/doc/fraccion_rb~_html.html +582 -0
  78. data/lib/doc/doc/index_html.html +389 -0
  79. data/lib/doc/doc/js/darkfish_js.html +386 -0
  80. data/lib/doc/doc/js/jquery_js.html +1611 -0
  81. data/lib/doc/doc/js/navigation_js.html +354 -0
  82. data/lib/doc/doc/js/search_index_js.html +427 -0
  83. data/lib/doc/doc/js/search_js.html +308 -0
  84. data/lib/doc/doc/js/searcher_js.html +441 -0
  85. data/lib/doc/doc/p10lppt13_rb~_html.html +810 -0
  86. data/lib/doc/doc/rdoc_css.html +939 -0
  87. data/lib/doc/doc/table_of_contents_html.html +489 -0
  88. data/lib/doc/fraccion_rb~.html +356 -0
  89. data/lib/doc/images/add.png +0 -0
  90. data/lib/doc/images/arrow_up.png +0 -0
  91. data/lib/doc/images/brick.png +0 -0
  92. data/lib/doc/images/brick_link.png +0 -0
  93. data/lib/doc/images/bug.png +0 -0
  94. data/lib/doc/images/bullet_black.png +0 -0
  95. data/lib/doc/images/bullet_toggle_minus.png +0 -0
  96. data/lib/doc/images/bullet_toggle_plus.png +0 -0
  97. data/lib/doc/images/date.png +0 -0
  98. data/lib/doc/images/delete.png +0 -0
  99. data/lib/doc/images/find.png +0 -0
  100. data/lib/doc/images/loadingAnimation.gif +0 -0
  101. data/lib/doc/images/macFFBgHack.png +0 -0
  102. data/lib/doc/images/package.png +0 -0
  103. data/lib/doc/images/page_green.png +0 -0
  104. data/lib/doc/images/page_white_text.png +0 -0
  105. data/lib/doc/images/page_white_width.png +0 -0
  106. data/lib/doc/images/plugin.png +0 -0
  107. data/lib/doc/images/ruby.png +0 -0
  108. data/lib/doc/images/tag_blue.png +0 -0
  109. data/lib/doc/images/tag_green.png +0 -0
  110. data/lib/doc/images/transparent.png +0 -0
  111. data/lib/doc/images/wrench.png +0 -0
  112. data/lib/doc/images/wrench_orange.png +0 -0
  113. data/lib/doc/images/zoom.png +0 -0
  114. data/lib/doc/index.html +248 -0
  115. data/lib/doc/js/darkfish.js +155 -0
  116. data/lib/doc/js/jquery.js +18 -0
  117. data/lib/doc/js/navigation.js +142 -0
  118. data/lib/doc/js/search.js +94 -0
  119. data/lib/doc/js/search_index.js +1 -0
  120. data/lib/doc/js/searcher.js +228 -0
  121. data/lib/doc/p10lppt13_rb~.html +522 -0
  122. data/lib/doc/rdoc.css +595 -0
  123. data/lib/doc/table_of_contents.html +360 -0
  124. data/lib/fraccion.rb +18 -3
  125. data/lib/p10lppt13.rb +71 -41
  126. data/lib/p10lppt13/version.rb +3 -1
  127. data/spec/p10lppt13_spec.rb +16 -6
  128. data/test/tc_p10lppt13.rb +2 -0
  129. metadata +166 -26
  130. checksums.yaml +0 -7
  131. data/lib/gcd.rb +0 -7
@@ -0,0 +1,582 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>fraccion_rb~.html - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body class="file">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="project-metadata">
49
+ <nav id="fileindex-section" class="section project-section">
50
+ <h3 class="section-header">Pages</h3>
51
+
52
+ <ul>
53
+
54
+ <li class="file"><a href="../doc/Densa_html.html">Densa.html</a>
55
+
56
+ <li class="file"><a href="../doc/Dispersa_html.html">Dispersa.html</a>
57
+
58
+ <li class="file"><a href="../doc/Fraccion_html.html">Fraccion.html</a>
59
+
60
+ <li class="file"><a href="../doc/Matriz_html.html">Matriz.html</a>
61
+
62
+ <li class="file"><a href="../doc/Object_html.html">Object.html</a>
63
+
64
+ <li class="file"><a href="../doc/P10lppt13_html.html">P10lppt13.html</a>
65
+
66
+ <li class="file"><a href="../doc/VectorDisperso_html.html">VectorDisperso.html</a>
67
+
68
+ <li class="file"><a href="../doc/created_rid.html">created.rid</a>
69
+
70
+ <li class="file"><a href="../doc/doc/Densa_html_html.html">Densa_html.html</a>
71
+
72
+ <li class="file"><a href="../doc/doc/Dispersa_html_html.html">Dispersa_html.html</a>
73
+
74
+ <li class="file"><a href="../doc/doc/Fraccion_html_html.html">Fraccion_html.html</a>
75
+
76
+ <li class="file"><a href="../doc/doc/Matriz_html_html.html">Matriz_html.html</a>
77
+
78
+ <li class="file"><a href="../doc/doc/Object_html_html.html">Object_html.html</a>
79
+
80
+ <li class="file"><a href="../doc/doc/P10lppt13_html_html.html">P10lppt13_html.html</a>
81
+
82
+ <li class="file"><a href="../doc/doc/VectorDisperso_html_html.html">VectorDisperso_html.html</a>
83
+
84
+ <li class="file"><a href="../doc/doc/created_rid_html.html">created_rid.html</a>
85
+
86
+ <li class="file"><a href="../doc/doc/doc/Densa_html_html_html.html">Densa_html_html.html</a>
87
+
88
+ <li class="file"><a href="../doc/doc/doc/Dispersa_html_html_html.html">Dispersa_html_html.html</a>
89
+
90
+ <li class="file"><a href="../doc/doc/doc/Fraccion_html_html_html.html">Fraccion_html_html.html</a>
91
+
92
+ <li class="file"><a href="../doc/doc/doc/Matriz_html_html_html.html">Matriz_html_html.html</a>
93
+
94
+ <li class="file"><a href="../doc/doc/doc/Object_html_html_html.html">Object_html_html.html</a>
95
+
96
+ <li class="file"><a href="../doc/doc/doc/P10lppt13_html_html_html.html">P10lppt13_html_html.html</a>
97
+
98
+ <li class="file"><a href="../doc/doc/doc/VectorDisperso_html_html_html.html">VectorDisperso_html_html.html</a>
99
+
100
+ <li class="file"><a href="../doc/doc/doc/created_rid_html_html.html">created_rid_html.html</a>
101
+
102
+ <li class="file"><a href="../doc/doc/doc/doc/created_rid_html_html_html.html">created_rid_html_html.html</a>
103
+
104
+ <li class="file"><a href="../doc/doc/doc/fraccion_rb~_html_html_html.html">fraccion_rb~_html_html.html</a>
105
+
106
+ <li class="file"><a href="../doc/doc/doc/index_html_html_html.html">index_html_html.html</a>
107
+
108
+ <li class="file"><a href="../doc/doc/doc/js/darkfish_js_html_html.html">darkfish_js_html.html</a>
109
+
110
+ <li class="file"><a href="../doc/doc/doc/js/jquery_js_html_html.html">jquery_js_html.html</a>
111
+
112
+ <li class="file"><a href="../doc/doc/doc/js/navigation_js_html_html.html">navigation_js_html.html</a>
113
+
114
+ <li class="file"><a href="../doc/doc/doc/js/search_index_js_html_html.html">search_index_js_html.html</a>
115
+
116
+ <li class="file"><a href="../doc/doc/doc/js/search_js_html_html.html">search_js_html.html</a>
117
+
118
+ <li class="file"><a href="../doc/doc/doc/js/searcher_js_html_html.html">searcher_js_html.html</a>
119
+
120
+ <li class="file"><a href="../doc/doc/doc/rdoc_css_html_html.html">rdoc_css_html.html</a>
121
+
122
+ <li class="file"><a href="../doc/doc/doc/table_of_contents_html_html_html.html">table_of_contents_html_html.html</a>
123
+
124
+ <li class="file"><a href="../doc/doc/fraccion_rb~_html_html.html">fraccion_rb~_html.html</a>
125
+
126
+ <li class="file"><a href="../doc/doc/index_html_html.html">index_html.html</a>
127
+
128
+ <li class="file"><a href="../doc/doc/js/darkfish_js_html.html">darkfish_js.html</a>
129
+
130
+ <li class="file"><a href="../doc/doc/js/jquery_js_html.html">jquery_js.html</a>
131
+
132
+ <li class="file"><a href="../doc/doc/js/navigation_js_html.html">navigation_js.html</a>
133
+
134
+ <li class="file"><a href="../doc/doc/js/search_index_js_html.html">search_index_js.html</a>
135
+
136
+ <li class="file"><a href="../doc/doc/js/search_js_html.html">search_js.html</a>
137
+
138
+ <li class="file"><a href="../doc/doc/js/searcher_js_html.html">searcher_js.html</a>
139
+
140
+ <li class="file"><a href="../doc/doc/p10lppt13_rb~_html_html.html">p10lppt13_rb~_html.html</a>
141
+
142
+ <li class="file"><a href="../doc/doc/rdoc_css_html.html">rdoc_css.html</a>
143
+
144
+ <li class="file"><a href="../doc/doc/table_of_contents_html_html.html">table_of_contents_html.html</a>
145
+
146
+ <li class="file"><a href="../doc/fraccion_rb~_html.html">fraccion_rb~.html</a>
147
+
148
+ <li class="file"><a href="../doc/index_html.html">index.html</a>
149
+
150
+ <li class="file"><a href="../doc/js/darkfish_js.html">darkfish.js</a>
151
+
152
+ <li class="file"><a href="../doc/js/jquery_js.html">jquery.js</a>
153
+
154
+ <li class="file"><a href="../doc/js/navigation_js.html">navigation.js</a>
155
+
156
+ <li class="file"><a href="../doc/js/search_js.html">search.js</a>
157
+
158
+ <li class="file"><a href="../doc/js/search_index_js.html">search_index.js</a>
159
+
160
+ <li class="file"><a href="../doc/js/searcher_js.html">searcher.js</a>
161
+
162
+ <li class="file"><a href="../doc/p10lppt13_rb~_html.html">p10lppt13_rb~.html</a>
163
+
164
+ <li class="file"><a href="../doc/rdoc_css.html">rdoc.css</a>
165
+
166
+ <li class="file"><a href="../doc/table_of_contents_html.html">table_of_contents.html</a>
167
+
168
+ <li class="file"><a href="../fraccion_rb~.html">fraccion.rb~</a>
169
+
170
+ <li class="file"><a href="../p10lppt13_rb~.html">p10lppt13.rb~</a>
171
+
172
+ </ul>
173
+ </nav>
174
+
175
+ <nav id="classindex-section" class="section project-section">
176
+ <h3 class="section-header">Class and Module Index</h3>
177
+
178
+ <ul class="link-list">
179
+
180
+ <li><a href="../Densa.html">Densa</a>
181
+
182
+ <li><a href="../Dispersa.html">Dispersa</a>
183
+
184
+ <li><a href="../Fraccion.html">Fraccion</a>
185
+
186
+ <li><a href="../Matriz.html">Matriz</a>
187
+
188
+ <li><a href="../Object.html">Object</a>
189
+
190
+ <li><a href="../P10lppt13.html">P10lppt13</a>
191
+
192
+ <li><a href="../VectorDisperso.html">VectorDisperso</a>
193
+
194
+ </ul>
195
+ </nav>
196
+
197
+ </div>
198
+ </nav>
199
+
200
+ <div id="documentation" class="description">
201
+
202
+ <p>&lt;!DOCTYPE html&gt;</p>
203
+
204
+ <p>&lt;html&gt; &lt;head&gt; &lt;meta content=“text/html; charset=UTF-8”
205
+ http-equiv=“Content-Type”&gt;</p>
206
+
207
+ <p>&lt;title&gt;fraccion.rb~ - RDoc Documentation&lt;/title&gt;</p>
208
+
209
+ <p>&lt;link type=“text/css” media=“screen” href=“./rdoc.css”
210
+ rel=“stylesheet”&gt;</p>
211
+
212
+ <p>&lt;script type=“text/javascript”&gt;</p>
213
+
214
+ <pre>var rdoc_rel_prefix = &quot;./&quot;;</pre>
215
+
216
+ <p>&lt;/script&gt;</p>
217
+
218
+ <p>&lt;script type=“text/javascript” charset=“utf-8”
219
+ src=“./js/jquery.js”&gt;&lt;/script&gt; &lt;script type=“text/javascript”
220
+ charset=“utf-8” src=“./js/navigation.js”&gt;&lt;/script&gt; &lt;script
221
+ type=“text/javascript” charset=“utf-8”
222
+ src=“./js/search_index.js”&gt;&lt;/script&gt; &lt;script
223
+ type=“text/javascript” charset=“utf-8”
224
+ src=“./js/search.js”&gt;&lt;/script&gt; &lt;script type=“text/javascript”
225
+ charset=“utf-8” src=“./js/searcher.js”&gt;&lt;/script&gt; &lt;script
226
+ type=“text/javascript” charset=“utf-8”
227
+ src=“./js/darkfish.js”&gt;&lt;/script&gt;</p>
228
+
229
+ <p>&lt;body class=“file”&gt; &lt;nav id=“metadata”&gt;</p>
230
+
231
+ <pre>&lt;nav id=&quot;home-section&quot; class=&quot;section&quot;&gt;
232
+ &lt;h3 class=&quot;section-header&quot;&gt;
233
+ &lt;a href=&quot;./index.html&quot;&gt;Home&lt;/a&gt;
234
+ &lt;a href=&quot;./table_of_contents.html#classes&quot;&gt;Classes&lt;/a&gt;
235
+ &lt;a href=&quot;./table_of_contents.html#methods&quot;&gt;Methods&lt;/a&gt;
236
+ &lt;/h3&gt;</pre>
237
+
238
+ <p>&lt;/nav&gt;</p>
239
+
240
+ <pre>&lt;nav id=&quot;search-section&quot; class=&quot;section project-section&quot; class=&quot;initially-hidden&quot;&gt;
241
+ &lt;form action=&quot;#&quot; method=&quot;get&quot; accept-charset=&quot;utf-8&quot;&gt;
242
+ &lt;h3 class=&quot;section-header&quot;&gt;
243
+ &lt;input type=&quot;text&quot; name=&quot;search&quot; placeholder=&quot;Search&quot; id=&quot;search-field&quot;
244
+ title=&quot;Type to search, Up and Down to navigate, Enter to load&quot;&gt;
245
+ &lt;/h3&gt;
246
+ &lt;/form&gt;
247
+
248
+ &lt;ul id=&quot;search-results&quot; class=&quot;initially-hidden&quot;&gt;&lt;/ul&gt;</pre>
249
+
250
+ <p>&lt;/nav&gt;</p>
251
+
252
+ <pre>&lt;div id=&quot;project-metadata&quot;&gt;
253
+ &lt;nav id=&quot;fileindex-section&quot; class=&quot;section project-section&quot;&gt;
254
+ &lt;h3 class=&quot;section-header&quot;&gt;Pages&lt;/h3&gt;
255
+
256
+ &lt;ul&gt;
257
+
258
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Densa_html.html&quot;&gt;Densa.html&lt;/a&gt;
259
+
260
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Dispersa_html.html&quot;&gt;Dispersa.html&lt;/a&gt;
261
+
262
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Fraccion_html.html&quot;&gt;Fraccion.html&lt;/a&gt;
263
+
264
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Matriz_html.html&quot;&gt;Matriz.html&lt;/a&gt;
265
+
266
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/Object_html.html&quot;&gt;Object.html&lt;/a&gt;
267
+
268
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/P10lppt13_html.html&quot;&gt;P10lppt13.html&lt;/a&gt;
269
+
270
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/VectorDisperso_html.html&quot;&gt;VectorDisperso.html&lt;/a&gt;
271
+
272
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/created_rid.html&quot;&gt;created.rid&lt;/a&gt;
273
+
274
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Densa_html_html.html&quot;&gt;Densa_html.html&lt;/a&gt;
275
+
276
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Dispersa_html_html.html&quot;&gt;Dispersa_html.html&lt;/a&gt;
277
+
278
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Fraccion_html_html.html&quot;&gt;Fraccion_html.html&lt;/a&gt;
279
+
280
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Matriz_html_html.html&quot;&gt;Matriz_html.html&lt;/a&gt;
281
+
282
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/Object_html_html.html&quot;&gt;Object_html.html&lt;/a&gt;
283
+
284
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/P10lppt13_html_html.html&quot;&gt;P10lppt13_html.html&lt;/a&gt;
285
+
286
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/VectorDisperso_html_html.html&quot;&gt;VectorDisperso_html.html&lt;/a&gt;
287
+
288
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/created_rid_html.html&quot;&gt;created_rid.html&lt;/a&gt;
289
+
290
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/doc/created_rid_html_html.html&quot;&gt;created_rid_html.html&lt;/a&gt;
291
+
292
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/fraccion_rb~_html_html.html&quot;&gt;fraccion_rb~_html.html&lt;/a&gt;
293
+
294
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/index_html_html.html&quot;&gt;index_html.html&lt;/a&gt;
295
+
296
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/darkfish_js_html.html&quot;&gt;darkfish_js.html&lt;/a&gt;
297
+
298
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/jquery_js_html.html&quot;&gt;jquery_js.html&lt;/a&gt;
299
+
300
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/navigation_js_html.html&quot;&gt;navigation_js.html&lt;/a&gt;
301
+
302
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/search_index_js_html.html&quot;&gt;search_index_js.html&lt;/a&gt;
303
+
304
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/search_js_html.html&quot;&gt;search_js.html&lt;/a&gt;
305
+
306
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/js/searcher_js_html.html&quot;&gt;searcher_js.html&lt;/a&gt;
307
+
308
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/rdoc_css_html.html&quot;&gt;rdoc_css.html&lt;/a&gt;
309
+
310
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/doc/table_of_contents_html_html.html&quot;&gt;table_of_contents_html.html&lt;/a&gt;
311
+
312
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/fraccion_rb~_html.html&quot;&gt;fraccion_rb~.html&lt;/a&gt;
313
+
314
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/index_html.html&quot;&gt;index.html&lt;/a&gt;
315
+
316
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/darkfish_js.html&quot;&gt;darkfish.js&lt;/a&gt;
317
+
318
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/jquery_js.html&quot;&gt;jquery.js&lt;/a&gt;
319
+
320
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/navigation_js.html&quot;&gt;navigation.js&lt;/a&gt;
321
+
322
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/search_js.html&quot;&gt;search.js&lt;/a&gt;
323
+
324
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/search_index_js.html&quot;&gt;search_index.js&lt;/a&gt;
325
+
326
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/js/searcher_js.html&quot;&gt;searcher.js&lt;/a&gt;
327
+
328
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/p10lppt13_rb~_html.html&quot;&gt;p10lppt13_rb~.html&lt;/a&gt;
329
+
330
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/rdoc_css.html&quot;&gt;rdoc.css&lt;/a&gt;
331
+
332
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./doc/table_of_contents_html.html&quot;&gt;table_of_contents.html&lt;/a&gt;
333
+
334
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./fraccion_rb~.html&quot;&gt;fraccion.rb~&lt;/a&gt;
335
+
336
+ &lt;li class=&quot;file&quot;&gt;&lt;a href=&quot;./p10lppt13_rb~.html&quot;&gt;p10lppt13.rb~&lt;/a&gt;
337
+
338
+ &lt;/ul&gt;</pre>
339
+
340
+ <p>&lt;/nav&gt;</p>
341
+
342
+ <pre> &lt;nav id=&quot;classindex-section&quot; class=&quot;section project-section&quot;&gt;
343
+ &lt;h3 class=&quot;section-header&quot;&gt;Class and Module Index&lt;/h3&gt;
344
+
345
+ &lt;ul class=&quot;link-list&quot;&gt;
346
+
347
+ &lt;li&gt;&lt;a href=&quot;./Densa.html&quot;&gt;Densa&lt;/a&gt;
348
+
349
+ &lt;li&gt;&lt;a href=&quot;./Dispersa.html&quot;&gt;Dispersa&lt;/a&gt;
350
+
351
+ &lt;li&gt;&lt;a href=&quot;./Fraccion.html&quot;&gt;Fraccion&lt;/a&gt;
352
+
353
+ &lt;li&gt;&lt;a href=&quot;./Matriz.html&quot;&gt;Matriz&lt;/a&gt;
354
+
355
+ &lt;li&gt;&lt;a href=&quot;./Object.html&quot;&gt;Object&lt;/a&gt;
356
+
357
+ &lt;li&gt;&lt;a href=&quot;./P10lppt13.html&quot;&gt;P10lppt13&lt;/a&gt;
358
+
359
+ &lt;li&gt;&lt;a href=&quot;./VectorDisperso.html&quot;&gt;VectorDisperso&lt;/a&gt;
360
+
361
+ &lt;/ul&gt;</pre>
362
+
363
+ <p>&lt;/nav&gt;</p>
364
+
365
+ <pre>&lt;/div&gt;</pre>
366
+
367
+ <p>&lt;/nav&gt;</p>
368
+
369
+ <p>&lt;div id=“documentation” class=“description”&gt;</p>
370
+
371
+ <p>&lt;p&gt;require “gcd.rb”&lt;/p&gt;</p>
372
+
373
+ <p>&lt;p&gt;############################################################# #
374
+ Clase &lt;a href=“Fraccion.html”&gt;Fraccion&lt;/a&gt; de la practica #7 de
375
+ LPP</p>
376
+
377
+ <p># #############################################################&lt;/p&gt;</p>
378
+
379
+ <p>&lt;p&gt;class &lt;a href=“Fraccion.html”&gt;Fraccion&lt;/a&gt;&lt;/p&gt;</p>
380
+
381
+ <p>&lt;pre class=“ruby”&gt;&lt;span
382
+ class=“ruby-identifier”&gt;attr_reader&lt;/span&gt; :&lt;span
383
+ class=“ruby-identifier”&gt;numer&lt;/span&gt;, :&lt;span
384
+ class=“ruby-identifier”&gt;denomin&lt;/span&gt;</p>
385
+
386
+ <p>&lt;span class=“ruby-comment”&gt;# Incluimos el módulo
387
+ Comparable&lt;/span&gt; &lt;span
388
+ class=“ruby-identifier”&gt;include&lt;/span&gt; &lt;span
389
+ class=“ruby-constant”&gt;Comparable&lt;/span&gt;</p>
390
+
391
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
392
+ class=“ruby-identifier”&gt;initialize&lt;/span&gt;(&lt;span
393
+ class=“ruby-identifier”&gt;n&lt;/span&gt;,&lt;span
394
+ class=“ruby-identifier”&gt;d&lt;/span&gt;)</p>
395
+
396
+ <pre>&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;d&lt;/span&gt;</pre>
397
+
398
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
399
+
400
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;#############################################################&lt;/span&gt;</pre>
401
+
402
+ <p>&lt;span class=“ruby-comment”&gt;# Funciones basicas de la clase
403
+ #&lt;/span&gt; &lt;span
404
+ class=“ruby-comment”&gt;#############################################################&lt;/span&gt;</p>
405
+
406
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Getter del num&lt;/span&gt;</pre>
407
+
408
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
409
+ class=“ruby-identifier”&gt;num&lt;/span&gt;()</p>
410
+
411
+ <pre>&lt;span class=&quot;ruby-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;</pre>
412
+
413
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
414
+
415
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Getter del denom&lt;/span&gt;</pre>
416
+
417
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
418
+ class=“ruby-identifier”&gt;denom&lt;/span&gt;()</p>
419
+
420
+ <pre>&lt;span class=&quot;ruby-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;</pre>
421
+
422
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
423
+
424
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Funcion para simplificar y mostrar la fraccion en formato reducido&lt;/span&gt;</pre>
425
+
426
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
427
+ class=“ruby-identifier”&gt;simplificar&lt;/span&gt;</p>
428
+
429
+ <pre>&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;gcd&lt;/span&gt;(&lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;, &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;) &lt;span class=&quot;ruby-comment&quot;&gt;# MCD entre num y denom&lt;/span&gt;
430
+ &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;, &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;) &lt;span class=&quot;ruby-comment&quot;&gt;# Simplificamos la fraccion que le pasemos&lt;/span&gt;</pre>
431
+
432
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
433
+
434
+ <p>&lt;span class=“ruby-comment”&gt;#Mostramos los atributos en un
435
+ string&lt;/span&gt; &lt;span class=“ruby-keyword”&gt;def&lt;/span&gt;
436
+ &lt;span class=“ruby-identifier”&gt;to_s&lt;/span&gt;</p>
437
+
438
+ <pre>&lt;span class=&quot;ruby-node&quot;&gt;&amp;quot;#{@numer}/#{@denomin}&amp;quot;&lt;/span&gt;</pre>
439
+
440
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
441
+
442
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;#Mostramos los atributos en float&lt;/span&gt;</pre>
443
+
444
+ <p>&lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
445
+ class=“ruby-identifier”&gt;to_f&lt;/span&gt;</p>
446
+
447
+ <pre>&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;to_f&lt;/span&gt;</pre>
448
+
449
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
450
+
451
+ <p>&lt;span
452
+ class=“ruby-comment”&gt;#############################################################&lt;/span&gt;
453
+ &lt;span class=“ruby-comment”&gt;# Funciones de igualdad, absoluto,
454
+ reciproco y opuesto #&lt;/span&gt; &lt;span
455
+ class=“ruby-comment”&gt;#############################################################&lt;/span&gt;</p>
456
+
457
+ <p>&lt;span class=“ruby-comment”&gt;# Funcion de comparar igualdad: Comparamos
458
+ la fraccion implicita, con la que le pasamos como parametro&lt;/span&gt;
459
+ &lt;span class=“ruby-keyword”&gt;def&lt;/span&gt; &lt;span
460
+ class=“ruby-operator”&gt;==&lt;/span&gt;(&lt;span
461
+ class=“ruby-identifier”&gt;other&lt;/span&gt;)</p>
462
+
463
+ <pre>&lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;class&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;to_s&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;ruby-string&quot;&gt;&amp;quot;Fraccion&amp;quot;&lt;/span&gt;
464
+ &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;,&lt;span class=&quot;ruby-value&quot;&gt;1&lt;/span&gt;)
465
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
466
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt; ((&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;) &lt;span class=&quot;ruby-keyword&quot;&gt;and&lt;/span&gt; (&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;))
467
+ &lt;span class=&quot;ruby-keyword&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;ruby-comment&quot;&gt;# Si el numerador y el denominador de la implicita coinciden con los &lt;/span&gt;
468
+ &lt;span class=&quot;ruby-comment&quot;&gt;# de la pasada por parametro, entonces las fracciones son iguales (true)&lt;/span&gt;
469
+ &lt;span class=&quot;ruby-keyword&quot;&gt;else&lt;/span&gt;
470
+ &lt;span class=&quot;ruby-keyword&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;ruby-comment&quot;&gt;# Si no, son distintas (false)&lt;/span&gt;
471
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;</pre>
472
+
473
+ <p>&lt;span class=“ruby-keyword”&gt;end&lt;/span&gt;</p>
474
+
475
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Funcion que devuelve la funcion en valor absoluto&lt;/span&gt;
476
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;absoluto&lt;/span&gt;
477
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt; = &lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;abs&lt;/span&gt;
478
+ &lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt; = &lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;abs&lt;/span&gt;
479
+ &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;,&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;)
480
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
481
+
482
+ &lt;span class=&quot;ruby-comment&quot;&gt;#Obtiene la fraccion reciproca a la implicita&lt;/span&gt;
483
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;reciprocal&lt;/span&gt;
484
+ &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;,&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;)
485
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
486
+
487
+ &lt;span class=&quot;ruby-comment&quot;&gt;# Funcion que calcula la fraccion opuesta&lt;/span&gt;
488
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;opuesto&lt;/span&gt;
489
+ &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;,&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;)
490
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
491
+
492
+ &lt;span class=&quot;ruby-comment&quot;&gt;#############################################################&lt;/span&gt;</pre>
493
+
494
+ <p>&lt;span class=“ruby-comment”&gt;# Funciones de suma, resta,
495
+ multiplicacion y division #&lt;/span&gt; &lt;span
496
+ class=“ruby-comment”&gt;#############################################################&lt;/span&gt;</p>
497
+
498
+ <pre>&lt;span class=&quot;ruby-comment&quot;&gt;# Necesitamos hallar el minimo comun multiplo para la suma y la resta&lt;/span&gt;
499
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;mcm&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;m&lt;/span&gt;)
500
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;=&lt;span class=&quot;ruby-identifier&quot;&gt;gcd&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt;,&lt;span class=&quot;ruby-identifier&quot;&gt;m&lt;/span&gt;)
501
+ (&lt;span class=&quot;ruby-identifier&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;m&lt;/span&gt;
502
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
503
+
504
+ &lt;span class=&quot;ruby-comment&quot;&gt;# Realizamos la division de la fraccion implicita con recibida como parametro&lt;/span&gt;
505
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)
506
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;)
507
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;simplificar&lt;/span&gt;
508
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
509
+
510
+ &lt;span class=&quot;ruby-comment&quot;&gt;# Realizamos la suma de la fraccion implicita con recibida como parametro&lt;/span&gt;
511
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;+&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)
512
+ &lt;span class=&quot;ruby-keyword&quot;&gt;if&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;instance_of?&lt;/span&gt;&lt;span class=&quot;ruby-constant&quot;&gt;Fixnum&lt;/span&gt;)
513
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;=&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;
514
+ &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;=&lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;,&lt;span class=&quot;ruby-value&quot;&gt;1&lt;/span&gt;)
515
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
516
+
517
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;mcm&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;)
518
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(((&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;+&lt;/span&gt;((&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;),&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;)
519
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;simplificar&lt;/span&gt;
520
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;</pre>
521
+
522
+ <p>&lt;span class=“ruby-comment”&gt;# Realizamos la resta de la fraccion
523
+ implicita con recibida como parametro&lt;/span&gt;</p>
524
+
525
+ <pre>&lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;-&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)
526
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;mcm&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;, &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;)
527
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt; = &lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(((&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;-&lt;/span&gt;((&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;)&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;),&lt;span class=&quot;ruby-identifier&quot;&gt;aux&lt;/span&gt;)
528
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;simplificar&lt;/span&gt;
529
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
530
+
531
+ &lt;span class=&quot;ruby-comment&quot;&gt;# Realizamos la multiplicacion de la fraccion implicita con recibida como parametro&lt;/span&gt;
532
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)
533
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;=&lt;span class=&quot;ruby-constant&quot;&gt;Fraccion&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;ruby-ivar&quot;&gt;@numer&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt;, &lt;span class=&quot;ruby-ivar&quot;&gt;@denomin&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt;)
534
+ &lt;span class=&quot;ruby-identifier&quot;&gt;temp&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;simplificar&lt;/span&gt;
535
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
536
+
537
+ &lt;span class=&quot;ruby-comment&quot;&gt;#############################################################&lt;/span&gt;</pre>
538
+
539
+ <p>&lt;span class=“ruby-comment”&gt;# Funciones de modulo y comparacionales
540
+ (menor, mayor, #&lt;/span&gt; &lt;span class=“ruby-comment”&gt;# menor
541
+ o igual y mayor o igual)&lt;/span&gt; &lt;span
542
+ class=“ruby-comment”&gt;#############################################################&lt;/span&gt;</p>
543
+
544
+ <pre>&lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;%&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;) &lt;span class=&quot;ruby-comment&quot;&gt;#Obtenemos el resto de la division de dos fracciones &lt;/span&gt;
545
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux1&lt;/span&gt; = &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt; &lt;span class=&quot;ruby-comment&quot;&gt;#Multiplicamos el numerador de la primera entre el denominador de la segunda&lt;/span&gt;
546
+ &lt;span class=&quot;ruby-identifier&quot;&gt;aux2&lt;/span&gt; = &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;denomin&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;numer&lt;/span&gt; &lt;span class=&quot;ruby-comment&quot;&gt;#Multiplicamos el denominador de la primera entre el numerador de la segunda&lt;/span&gt;
547
+ &lt;span class=&quot;ruby-identifier&quot;&gt;resto&lt;/span&gt; = &lt;span class=&quot;ruby-identifier&quot;&gt;aux1&lt;/span&gt;&lt;span class=&quot;ruby-operator&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;ruby-identifier&quot;&gt;aux2&lt;/span&gt; &lt;span class=&quot;ruby-comment&quot;&gt;#Obtenemos el Resto de la fraccion resultante&lt;/span&gt;
548
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
549
+
550
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;=&amp;gt;&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)
551
+ &lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;to_f&lt;/span&gt; &lt;span class=&quot;ruby-operator&quot;&gt;&amp;lt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;.&lt;span class=&quot;ruby-identifier&quot;&gt;to_f&lt;/span&gt;
552
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;
553
+
554
+ &lt;span class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;ruby-identifier&quot;&gt;coerce&lt;/span&gt;(&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)
555
+ &lt;span class=&quot;ruby-comment&quot;&gt;#aux = Fraccion.new(other,1)&lt;/span&gt;
556
+ [&lt;span class=&quot;ruby-keyword&quot;&gt;self&lt;/span&gt;,&lt;span class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;]
557
+ &lt;span class=&quot;ruby-keyword&quot;&gt;end&lt;/span&gt;</pre>
558
+
559
+ <p>&lt;/pre&gt;</p>
560
+
561
+ <p>&lt;p&gt;end&lt;/p&gt;</p>
562
+
563
+ <p>&lt;/div&gt;</p>
564
+
565
+ <p>&lt;footer id=“validator-badges”&gt;</p>
566
+
567
+ <pre>&lt;p&gt;&lt;a href=&quot;http://validator.w3.org/check/referer&quot;&gt;[Validate]&lt;/a&gt;
568
+ &lt;p&gt;Generated by &lt;a href=&quot;https://github.com/rdoc/rdoc&quot;&gt;RDoc&lt;/a&gt; 4.0.0.
569
+ &lt;p&gt;Generated with the &lt;a href=&quot;http://deveiate.org/projects/Darkfish-Rdoc/&quot;&gt;Darkfish Rdoc Generator&lt;/a&gt; 3.</pre>
570
+
571
+ <p>&lt;/footer&gt;</p>
572
+
573
+ </div>
574
+
575
+
576
+
577
+ <footer id="validator-badges">
578
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
579
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
580
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
581
+ </footer>
582
+