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
@@ -1,3 +1,5 @@
1
+ # Modulo de la gema p10lppt13, que incluye la version
1
2
  module P10lppt13
2
- VERSION = "1.0.0"
3
+ #Constante que guarda la version de la gema p10lppt13
4
+ VERSION = "1.1.0"
3
5
  end
@@ -1,5 +1,6 @@
1
1
  require "p10lppt13.rb"
2
2
 
3
+ #Espectativas de la clase Matriz
3
4
  describe Matriz do
4
5
  before :each do
5
6
  @m1 = Densa.new(2,2,[[1,2],[3,4]])
@@ -114,12 +115,11 @@ describe Matriz do
114
115
  @aux2 = @aux+@mf1
115
116
  @aux2.to_s.should eq(@aux3.to_s)
116
117
  end
117
- it "Comprobamos la multiplicacion" do
118
- @aux = Densa.new(2,2,[[@f1,@f1],[@f1,@f1]])
119
- @aux2 = @aux.porf(@aux)
120
- @aux3 = Densa.new(2,2,[[@f1,@f1],[@f1,@f1]])
121
- @aux2.to_s.should eq(@aux3.to_s)
122
- end
118
+ it "Comprobamos la multiplicacion" do
119
+ @aux = Densa.new(2,2,[[@f1,@f1],[@f1,@f1]])
120
+ @aux2 = @aux.porf(@aux)
121
+ @aux2.to_s.should eq("1/4\t1/2\t\n1/4\t1/2\t\n")
122
+ end
123
123
  it "Comprobamos el maximo" do
124
124
  @aux = Densa.new(2,2,[[@f1,1],[@f3,@f1]])
125
125
  @aux.max.should eq(@f3)
@@ -130,5 +130,15 @@ describe Matriz do
130
130
  end
131
131
 
132
132
  end
133
+
134
+ describe "Modificacion de la practica" do
135
+ it "Suma de una matriz densa con enteros y una dispersa con fracciones" do
136
+ @aux = Dispersa.new(2,2, 0 => { 0 => @f1 })
137
+ @aux1 = Densa.new(2,2,[[1,1],[1,1]])
138
+ @aux2 = @aux + @aux1
139
+ @aux3 = Densa.new(2,2,[[@f1+1,1],[1,1]])
140
+ @aux2.to_s.should eq(@aux3.to_s)
141
+ end
142
+ end
133
143
 
134
144
  end
data/test/tc_p10lppt13.rb CHANGED
@@ -3,8 +3,10 @@ require "p10lppt13.rb"
3
3
 
4
4
  require "test/unit"
5
5
 
6
+ # Clase con las pruebas unitarias de la practica
6
7
  class TestP10lppt13 < Test::Unit::TestCase
7
8
 
9
+ # Metodo de los tests
8
10
  def test_prueba
9
11
 
10
12
  @m1 = Densa.new(2,2,[[1,2],[3,4]])
metadata CHANGED
@@ -1,22 +1,33 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: p10lppt13
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 0
10
+ version: 1.1.0
5
11
  platform: ruby
6
- authors:
7
- - José Alexander Delgado Hernández, Sem Ramos Herrera
12
+ authors:
13
+ - "Jos\xC3\xA9 Alexander Delgado Hern\xC3\xA1ndez, Sem Ramos Herrera"
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
17
+
18
+ date: 2013-11-28 00:00:00 Z
12
19
  dependencies: []
13
- description: Implementación de varias clases con matrices densas y dispersas
14
- email:
20
+
21
+ description: "Implementaci\xC3\xB3n de varias clases con matrices densas y dispersas"
22
+ email:
15
23
  - alu0100603194@ull.edu.es
16
24
  executables: []
25
+
17
26
  extensions: []
27
+
18
28
  extra_rdoc_files: []
19
- files:
29
+
30
+ files:
20
31
  - .gitignore
21
32
  - .travis.yml
22
33
  - Gemfile
@@ -24,35 +35,164 @@ files:
24
35
  - Guardfile
25
36
  - README.md
26
37
  - Rakefile
38
+ - lib/doc/Densa.html
39
+ - lib/doc/Dispersa.html
40
+ - lib/doc/Fraccion.html
41
+ - lib/doc/Matriz.html
42
+ - lib/doc/Object.html
43
+ - lib/doc/P10lppt13.html
44
+ - lib/doc/VectorDisperso.html
45
+ - lib/doc/created.rid
46
+ - lib/doc/doc/Densa_html.html
47
+ - lib/doc/doc/Dispersa_html.html
48
+ - lib/doc/doc/Fraccion_html.html
49
+ - lib/doc/doc/Matriz_html.html
50
+ - lib/doc/doc/Object_html.html
51
+ - lib/doc/doc/P10lppt13_html.html
52
+ - lib/doc/doc/VectorDisperso_html.html
53
+ - lib/doc/doc/created_rid.html
54
+ - lib/doc/doc/doc/Densa_html_html.html
55
+ - lib/doc/doc/doc/Dispersa_html_html.html
56
+ - lib/doc/doc/doc/Fraccion_html_html.html
57
+ - lib/doc/doc/doc/Matriz_html_html.html
58
+ - lib/doc/doc/doc/Object_html_html.html
59
+ - lib/doc/doc/doc/P10lppt13_html_html.html
60
+ - lib/doc/doc/doc/VectorDisperso_html_html.html
61
+ - lib/doc/doc/doc/created_rid_html.html
62
+ - lib/doc/doc/doc/doc/Densa_html_html_html.html
63
+ - lib/doc/doc/doc/doc/Dispersa_html_html_html.html
64
+ - lib/doc/doc/doc/doc/Fraccion_html_html_html.html
65
+ - lib/doc/doc/doc/doc/Matriz_html_html_html.html
66
+ - lib/doc/doc/doc/doc/Object_html_html_html.html
67
+ - lib/doc/doc/doc/doc/P10lppt13_html_html_html.html
68
+ - lib/doc/doc/doc/doc/VectorDisperso_html_html_html.html
69
+ - lib/doc/doc/doc/doc/created_rid_html_html.html
70
+ - lib/doc/doc/doc/doc/doc/Densa_html_html_html_html.html
71
+ - lib/doc/doc/doc/doc/doc/Dispersa_html_html_html_html.html
72
+ - lib/doc/doc/doc/doc/doc/Fraccion_html_html_html_html.html
73
+ - lib/doc/doc/doc/doc/doc/Matriz_html_html_html_html.html
74
+ - lib/doc/doc/doc/doc/doc/Object_html_html_html_html.html
75
+ - lib/doc/doc/doc/doc/doc/P10lppt13_html_html_html_html.html
76
+ - lib/doc/doc/doc/doc/doc/VectorDisperso_html_html_html_html.html
77
+ - lib/doc/doc/doc/doc/doc/created_rid_html_html_html.html
78
+ - lib/doc/doc/doc/doc/doc/doc/created_rid_html_html_html_html.html
79
+ - lib/doc/doc/doc/doc/doc/fraccion_rb~_html_html_html_html.html
80
+ - lib/doc/doc/doc/doc/doc/index_html_html_html_html.html
81
+ - lib/doc/doc/doc/doc/doc/js/darkfish_js_html_html_html.html
82
+ - lib/doc/doc/doc/doc/doc/js/jquery_js_html_html_html.html
83
+ - lib/doc/doc/doc/doc/doc/js/navigation_js_html_html_html.html
84
+ - lib/doc/doc/doc/doc/doc/js/search_index_js_html_html_html.html
85
+ - lib/doc/doc/doc/doc/doc/js/search_js_html_html_html.html
86
+ - lib/doc/doc/doc/doc/doc/js/searcher_js_html_html_html.html
87
+ - lib/doc/doc/doc/doc/doc/rdoc_css_html_html_html.html
88
+ - lib/doc/doc/doc/doc/doc/table_of_contents_html_html_html_html.html
89
+ - lib/doc/doc/doc/doc/fraccion_rb~_html_html_html.html
90
+ - lib/doc/doc/doc/doc/index_html_html_html.html
91
+ - lib/doc/doc/doc/doc/js/darkfish_js_html_html.html
92
+ - lib/doc/doc/doc/doc/js/jquery_js_html_html.html
93
+ - lib/doc/doc/doc/doc/js/navigation_js_html_html.html
94
+ - lib/doc/doc/doc/doc/js/search_index_js_html_html.html
95
+ - lib/doc/doc/doc/doc/js/search_js_html_html.html
96
+ - lib/doc/doc/doc/doc/js/searcher_js_html_html.html
97
+ - lib/doc/doc/doc/doc/p10lppt13_rb~_html_html_html.html
98
+ - lib/doc/doc/doc/doc/rdoc_css_html_html.html
99
+ - lib/doc/doc/doc/doc/table_of_contents_html_html_html.html
100
+ - lib/doc/doc/doc/fraccion_rb~_html_html.html
101
+ - lib/doc/doc/doc/index_html_html.html
102
+ - lib/doc/doc/doc/js/darkfish_js_html.html
103
+ - lib/doc/doc/doc/js/jquery_js_html.html
104
+ - lib/doc/doc/doc/js/navigation_js_html.html
105
+ - lib/doc/doc/doc/js/search_index_js_html.html
106
+ - lib/doc/doc/doc/js/search_js_html.html
107
+ - lib/doc/doc/doc/js/searcher_js_html.html
108
+ - lib/doc/doc/doc/p10lppt13_rb~_html_html.html
109
+ - lib/doc/doc/doc/rdoc_css_html.html
110
+ - lib/doc/doc/doc/table_of_contents_html_html.html
111
+ - lib/doc/doc/fraccion_rb~_html.html
112
+ - lib/doc/doc/index_html.html
113
+ - lib/doc/doc/js/darkfish_js.html
114
+ - lib/doc/doc/js/jquery_js.html
115
+ - lib/doc/doc/js/navigation_js.html
116
+ - lib/doc/doc/js/search_index_js.html
117
+ - lib/doc/doc/js/search_js.html
118
+ - lib/doc/doc/js/searcher_js.html
119
+ - lib/doc/doc/p10lppt13_rb~_html.html
120
+ - lib/doc/doc/rdoc_css.html
121
+ - lib/doc/doc/table_of_contents_html.html
122
+ - lib/doc/fraccion_rb~.html
123
+ - lib/doc/images/add.png
124
+ - lib/doc/images/arrow_up.png
125
+ - lib/doc/images/brick.png
126
+ - lib/doc/images/brick_link.png
127
+ - lib/doc/images/bug.png
128
+ - lib/doc/images/bullet_black.png
129
+ - lib/doc/images/bullet_toggle_minus.png
130
+ - lib/doc/images/bullet_toggle_plus.png
131
+ - lib/doc/images/date.png
132
+ - lib/doc/images/delete.png
133
+ - lib/doc/images/find.png
134
+ - lib/doc/images/loadingAnimation.gif
135
+ - lib/doc/images/macFFBgHack.png
136
+ - lib/doc/images/package.png
137
+ - lib/doc/images/page_green.png
138
+ - lib/doc/images/page_white_text.png
139
+ - lib/doc/images/page_white_width.png
140
+ - lib/doc/images/plugin.png
141
+ - lib/doc/images/ruby.png
142
+ - lib/doc/images/tag_blue.png
143
+ - lib/doc/images/tag_green.png
144
+ - lib/doc/images/transparent.png
145
+ - lib/doc/images/wrench.png
146
+ - lib/doc/images/wrench_orange.png
147
+ - lib/doc/images/zoom.png
148
+ - lib/doc/index.html
149
+ - lib/doc/js/darkfish.js
150
+ - lib/doc/js/jquery.js
151
+ - lib/doc/js/navigation.js
152
+ - lib/doc/js/search.js
153
+ - lib/doc/js/search_index.js
154
+ - lib/doc/js/searcher.js
155
+ - lib/doc/p10lppt13_rb~.html
156
+ - lib/doc/rdoc.css
157
+ - lib/doc/table_of_contents.html
27
158
  - lib/fraccion.rb
28
- - lib/gcd.rb
29
159
  - lib/p10lppt13.rb
30
160
  - lib/p10lppt13/version.rb
31
161
  - p10lppt13.gemspec
32
162
  - spec/p10lppt13_spec.rb
33
163
  - test/tc_p10lppt13.rb
34
- homepage: ''
164
+ homepage: ""
35
165
  licenses: []
36
- metadata: {}
166
+
37
167
  post_install_message:
38
168
  rdoc_options: []
39
- require_paths:
169
+
170
+ require_paths:
40
171
  - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
42
- requirements:
43
- - - '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- required_rubygems_version: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - '>='
49
- - !ruby/object:Gem::Version
50
- version: '0'
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ hash: 3
178
+ segments:
179
+ - 0
180
+ version: "0"
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ hash: 3
187
+ segments:
188
+ - 0
189
+ version: "0"
51
190
  requirements: []
191
+
52
192
  rubyforge_project: p10lppt13
53
- rubygems_version: 2.0.3
193
+ rubygems_version: 1.8.15
54
194
  signing_key:
55
- specification_version: 4
195
+ specification_version: 3
56
196
  summary: Gema de matrices densas y dispersas
57
197
  test_files: []
58
- has_rdoc:
198
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 8436d25fe500897f8296082a082742d4c4c11540
4
- data.tar.gz: 1a08d13f564ab578c876318ee537270ec64c8fd9
5
- SHA512:
6
- metadata.gz: 96eae38e7cfd7f988edfb41b821d83bdcbe85f8df50751734b430cb774241b69bb0c68e323ee955c315551d841d4a00e8ff8274a2937ffe8a3b295210831e97b
7
- data.tar.gz: 7dfa726681d6ce045daf61c0ce78ee3d2583e8dade0c2ef055e589c65c4dbb1126f6b822cbc2b3a2a363372d888d7cbe08fa9d554e6dde70dc78032a8a0fb472
data/lib/gcd.rb DELETED
@@ -1,7 +0,0 @@
1
- def gcd(u, v)
2
- u, v = u.abs, v.abs
3
- while v != 0
4
- u , v = v, u % v
5
- end
6
- u
7
- end