chemistry-element 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +14 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +14 -0
  6. data/chemistry-element.gemspec +21 -0
  7. data/lib/chemistry-element/version.rb +5 -0
  8. data/lib/chemistry/element.rb +22 -0
  9. data/lib/chemistry/element/actinium.rb +8 -0
  10. data/lib/chemistry/element/aluminium.rb +8 -0
  11. data/lib/chemistry/element/americium.rb +8 -0
  12. data/lib/chemistry/element/antimony.rb +8 -0
  13. data/lib/chemistry/element/argon.rb +8 -0
  14. data/lib/chemistry/element/arsenic.rb +8 -0
  15. data/lib/chemistry/element/astatine.rb +8 -0
  16. data/lib/chemistry/element/atom.rb +41 -0
  17. data/lib/chemistry/element/barium.rb +8 -0
  18. data/lib/chemistry/element/berkelium.rb +8 -0
  19. data/lib/chemistry/element/beryllium.rb +8 -0
  20. data/lib/chemistry/element/bismuth.rb +8 -0
  21. data/lib/chemistry/element/bohrium.rb +8 -0
  22. data/lib/chemistry/element/boron.rb +8 -0
  23. data/lib/chemistry/element/bromine.rb +8 -0
  24. data/lib/chemistry/element/cadmium.rb +8 -0
  25. data/lib/chemistry/element/caesium.rb +8 -0
  26. data/lib/chemistry/element/calcium.rb +8 -0
  27. data/lib/chemistry/element/californium.rb +8 -0
  28. data/lib/chemistry/element/carbon.rb +8 -0
  29. data/lib/chemistry/element/cerium.rb +8 -0
  30. data/lib/chemistry/element/chlorine.rb +8 -0
  31. data/lib/chemistry/element/chromium.rb +8 -0
  32. data/lib/chemistry/element/cobalt.rb +8 -0
  33. data/lib/chemistry/element/copernicium.rb +8 -0
  34. data/lib/chemistry/element/copper.rb +8 -0
  35. data/lib/chemistry/element/curium.rb +8 -0
  36. data/lib/chemistry/element/darmstadtium.rb +8 -0
  37. data/lib/chemistry/element/dubnium.rb +8 -0
  38. data/lib/chemistry/element/dysprosium.rb +8 -0
  39. data/lib/chemistry/element/einsteinium.rb +8 -0
  40. data/lib/chemistry/element/erbium.rb +8 -0
  41. data/lib/chemistry/element/europium.rb +8 -0
  42. data/lib/chemistry/element/fermium.rb +8 -0
  43. data/lib/chemistry/element/flerovium.rb +8 -0
  44. data/lib/chemistry/element/fluorine.rb +8 -0
  45. data/lib/chemistry/element/francium.rb +8 -0
  46. data/lib/chemistry/element/gadolinium.rb +8 -0
  47. data/lib/chemistry/element/gallium.rb +8 -0
  48. data/lib/chemistry/element/germanium.rb +8 -0
  49. data/lib/chemistry/element/gold.rb +8 -0
  50. data/lib/chemistry/element/hafnium.rb +8 -0
  51. data/lib/chemistry/element/hassium.rb +8 -0
  52. data/lib/chemistry/element/helium.rb +8 -0
  53. data/lib/chemistry/element/holmium.rb +8 -0
  54. data/lib/chemistry/element/hydrogen.rb +8 -0
  55. data/lib/chemistry/element/indium.rb +8 -0
  56. data/lib/chemistry/element/iodine.rb +8 -0
  57. data/lib/chemistry/element/iridium.rb +8 -0
  58. data/lib/chemistry/element/iron.rb +8 -0
  59. data/lib/chemistry/element/krypton.rb +8 -0
  60. data/lib/chemistry/element/lanthanum.rb +8 -0
  61. data/lib/chemistry/element/lawrencium.rb +8 -0
  62. data/lib/chemistry/element/lead.rb +8 -0
  63. data/lib/chemistry/element/lithium.rb +8 -0
  64. data/lib/chemistry/element/livermorium.rb +8 -0
  65. data/lib/chemistry/element/lutetium.rb +8 -0
  66. data/lib/chemistry/element/magnesium.rb +8 -0
  67. data/lib/chemistry/element/manganese.rb +8 -0
  68. data/lib/chemistry/element/meitnerium.rb +8 -0
  69. data/lib/chemistry/element/mendelevium.rb +8 -0
  70. data/lib/chemistry/element/mercury.rb +8 -0
  71. data/lib/chemistry/element/molybdenum.rb +8 -0
  72. data/lib/chemistry/element/neodymium.rb +8 -0
  73. data/lib/chemistry/element/neon.rb +8 -0
  74. data/lib/chemistry/element/neptunium.rb +8 -0
  75. data/lib/chemistry/element/nickel.rb +8 -0
  76. data/lib/chemistry/element/niobium.rb +8 -0
  77. data/lib/chemistry/element/nitrogen.rb +8 -0
  78. data/lib/chemistry/element/nobelium.rb +8 -0
  79. data/lib/chemistry/element/osmium.rb +8 -0
  80. data/lib/chemistry/element/oxygen.rb +8 -0
  81. data/lib/chemistry/element/palladium.rb +8 -0
  82. data/lib/chemistry/element/phosphorus.rb +8 -0
  83. data/lib/chemistry/element/platinum.rb +8 -0
  84. data/lib/chemistry/element/plutonium.rb +8 -0
  85. data/lib/chemistry/element/polonium.rb +8 -0
  86. data/lib/chemistry/element/potassium.rb +8 -0
  87. data/lib/chemistry/element/praseodymium.rb +8 -0
  88. data/lib/chemistry/element/promethium.rb +8 -0
  89. data/lib/chemistry/element/protactinium.rb +8 -0
  90. data/lib/chemistry/element/radium.rb +8 -0
  91. data/lib/chemistry/element/radon.rb +8 -0
  92. data/lib/chemistry/element/rhenium.rb +8 -0
  93. data/lib/chemistry/element/rhodium.rb +8 -0
  94. data/lib/chemistry/element/roentgenium.rb +8 -0
  95. data/lib/chemistry/element/rubidium.rb +8 -0
  96. data/lib/chemistry/element/ruthenium.rb +8 -0
  97. data/lib/chemistry/element/rutherfordium.rb +8 -0
  98. data/lib/chemistry/element/samarium.rb +8 -0
  99. data/lib/chemistry/element/scandium.rb +8 -0
  100. data/lib/chemistry/element/seaborgium.rb +8 -0
  101. data/lib/chemistry/element/selenium.rb +8 -0
  102. data/lib/chemistry/element/silicon.rb +8 -0
  103. data/lib/chemistry/element/silver.rb +8 -0
  104. data/lib/chemistry/element/sodium.rb +8 -0
  105. data/lib/chemistry/element/strontium.rb +8 -0
  106. data/lib/chemistry/element/sulfur.rb +8 -0
  107. data/lib/chemistry/element/tantalum.rb +8 -0
  108. data/lib/chemistry/element/technetium.rb +8 -0
  109. data/lib/chemistry/element/tellurium.rb +8 -0
  110. data/lib/chemistry/element/terbium.rb +8 -0
  111. data/lib/chemistry/element/thallium.rb +8 -0
  112. data/lib/chemistry/element/thorium.rb +8 -0
  113. data/lib/chemistry/element/thulium.rb +8 -0
  114. data/lib/chemistry/element/tin.rb +8 -0
  115. data/lib/chemistry/element/titanium.rb +8 -0
  116. data/lib/chemistry/element/tungsten.rb +8 -0
  117. data/lib/chemistry/element/ununoctium.rb +8 -0
  118. data/lib/chemistry/element/ununpentium.rb +8 -0
  119. data/lib/chemistry/element/ununseptium.rb +8 -0
  120. data/lib/chemistry/element/ununtrium.rb +8 -0
  121. data/lib/chemistry/element/uranium.rb +8 -0
  122. data/lib/chemistry/element/vanadium.rb +8 -0
  123. data/lib/chemistry/element/xenon.rb +8 -0
  124. data/lib/chemistry/element/ytterbium.rb +8 -0
  125. data/lib/chemistry/element/yttrium.rb +8 -0
  126. data/lib/chemistry/element/zinc.rb +8 -0
  127. data/lib/chemistry/element/zirconium.rb +8 -0
  128. data/test/chemistry/element/test_atom.rb +103 -0
  129. data/test/chemistry/test_element.rb +42 -0
  130. data/test/test_chemistry.rb +0 -0
  131. data/test/test_helper.rb +2 -0
  132. metadata +202 -0
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Palladium" do
4
+ symbol "Pd"
5
+ atomic_number 46
6
+ atomic_weight 106.42
7
+ melting_point '1825K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Phosphorus" do
4
+ symbol "P"
5
+ atomic_number 15
6
+ atomic_weight 30.973762
7
+ melting_point '317.45K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Platinum" do
4
+ symbol "Pt"
5
+ atomic_number 78
6
+ atomic_weight 195.084
7
+ melting_point '2045K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Plutonium" do
4
+ symbol "Pu"
5
+ atomic_number 94
6
+ atomic_weight 244
7
+ melting_point '913K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Polonium" do
4
+ symbol "Po"
5
+ atomic_number 84
6
+ atomic_weight 210
7
+ melting_point '527K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Potassium" do
4
+ symbol "K"
5
+ atomic_number 19
6
+ atomic_weight 39.0983
7
+ melting_point '336.5K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Praseodymium" do
4
+ symbol "Pr"
5
+ atomic_number 59
6
+ atomic_weight 140.90765
7
+ melting_point '1204K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Promethium" do
4
+ symbol "Pm"
5
+ atomic_number 61
6
+ atomic_weight 145
7
+ melting_point '1204K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Protactinium" do
4
+ symbol "Pa"
5
+ atomic_number 91
6
+ atomic_weight 231.03588
7
+ melting_point '2113K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Radium" do
4
+ symbol "Ra"
5
+ atomic_number 88
6
+ atomic_weight 226
7
+ melting_point '973K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Radon" do
4
+ symbol "Rn"
5
+ atomic_number 86
6
+ atomic_weight 220
7
+ melting_point '202K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Rhenium" do
4
+ symbol "Re"
5
+ atomic_number 75
6
+ atomic_weight 186.207
7
+ melting_point '3453K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Rhodium" do
4
+ symbol "Rh"
5
+ atomic_number 45
6
+ atomic_weight 102.90550
7
+ melting_point '2239K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Rg" do
4
+ symbol "Rg"
5
+ atomic_number 111
6
+ atomic_weight 272
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Rubidium" do
4
+ symbol "Rb"
5
+ atomic_number 37
6
+ atomic_weight 85.4678
7
+ melting_point '312.79K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Ruthenium" do
4
+ symbol "Ru"
5
+ atomic_number 44
6
+ atomic_weight 101.07
7
+ melting_point '2523K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Rutherfordium" do
4
+ symbol "Rf"
5
+ atomic_number 104
6
+ atomic_weight 261
7
+ melting_point '2400K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Samarium" do
4
+ symbol "Sm"
5
+ atomic_number 62
6
+ atomic_weight 150.36
7
+ melting_point '1345K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Scandium" do
4
+ symbol "Sc"
5
+ atomic_number 21
6
+ atomic_weight 44.955912
7
+ melting_point '1812K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Sg" do
4
+ symbol "Sg"
5
+ atomic_number 106
6
+ atomic_weight 266
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Selenium" do
4
+ symbol "Se"
5
+ atomic_number 34
6
+ atomic_weight 78.96
7
+ melting_point '494K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Silicon" do
4
+ symbol "Si"
5
+ atomic_number 14
6
+ atomic_weight 28.0855
7
+ melting_point '1683K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Silver" do
4
+ symbol "Ag"
5
+ atomic_number 47
6
+ atomic_weight 107.8682
7
+ melting_point '1234K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Sodium" do
4
+ symbol "Na"
5
+ atomic_number 11
6
+ atomic_weight 22.98976928
7
+ melting_point '371K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Strontium" do
4
+ symbol "Sr"
5
+ atomic_number 38
6
+ atomic_weight 87.62
7
+ melting_point '1042K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Sulfur" do
4
+ symbol "S"
5
+ atomic_number 16
6
+ atomic_weight 32.065
7
+ melting_point '388.51K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Tantalum" do
4
+ symbol "Ta"
5
+ atomic_number 73
6
+ atomic_weight 180.94788
7
+ melting_point '3269K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Technetium" do
4
+ symbol "Tc"
5
+ atomic_number 43
6
+ atomic_weight 98
7
+ melting_point '2473K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Tellurium" do
4
+ symbol "Te"
5
+ atomic_number 52
6
+ atomic_weight 127.60
7
+ melting_point '722.8K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Terbium" do
4
+ symbol "Tb"
5
+ atomic_number 65
6
+ atomic_weight 158.92535
7
+ melting_point '1630K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Thallium" do
4
+ symbol "Tl"
5
+ atomic_number 81
6
+ atomic_weight 204.3833
7
+ melting_point '577K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Thorium" do
4
+ symbol "Th"
5
+ atomic_number 90
6
+ atomic_weight 232.03806
7
+ melting_point '2028K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Thulium" do
4
+ symbol "Tm"
5
+ atomic_number 69
6
+ atomic_weight 168.93421
7
+ melting_point '1818K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Tin" do
4
+ symbol "Sn"
5
+ atomic_number 50
6
+ atomic_weight 118.710
7
+ melting_point '505.21K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Titanium" do
4
+ symbol "Ti"
5
+ atomic_number 22
6
+ atomic_weight 47.867
7
+ melting_point '1933K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Tungsten" do
4
+ symbol "W"
5
+ atomic_number 74
6
+ atomic_weight 183.84
7
+ melting_point '3680K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Uuo" do
4
+ symbol "Uuo"
5
+ atomic_number 118
6
+ atomic_weight 293
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Uup" do
4
+ symbol "Uup"
5
+ atomic_number 115
6
+ atomic_weight 288
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Uus" do
4
+ symbol "Uus"
5
+ atomic_number 117
6
+ atomic_weight 294
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/dsl'
2
+
3
+ Chemistry::DSL.element "Uut" do
4
+ symbol "Uut"
5
+ atomic_number 113
6
+ atomic_weight 284
7
+ melting_point
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Uranium" do
4
+ symbol "U"
5
+ atomic_number 92
6
+ atomic_weight 238.02891
7
+ melting_point '1405K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Vanadium" do
4
+ symbol "V"
5
+ atomic_number 23
6
+ atomic_weight 50.9415
7
+ melting_point '2175K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Xenon" do
4
+ symbol "Xe"
5
+ atomic_number 54
6
+ atomic_weight 131.293
7
+ melting_point '161.45K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Ytterbium" do
4
+ symbol "Yb"
5
+ atomic_number 70
6
+ atomic_weight 173.04
7
+ melting_point '1097K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Yttrium" do
4
+ symbol "Y"
5
+ atomic_number 39
6
+ atomic_weight 88.90585
7
+ melting_point '1799K'
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'chemistry/element'
2
+
3
+ Chemistry::Element.define "Zinc" do
4
+ symbol "Zn"
5
+ atomic_number 30
6
+ atomic_weight 65.409
7
+ melting_point '692.88K'
8
+ end