joules 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c20098c6f822a1b455a45e4a0a569545939be0c0
4
- data.tar.gz: 13cf60542b4b7dd226b6d4da3ea265982734ef8d
3
+ metadata.gz: 7adc9f03a5ed56c45511fb95a55cd7501f4d7f31
4
+ data.tar.gz: 39a51410782c1e97170195ebaa9ff34f01e8246d
5
5
  SHA512:
6
- metadata.gz: b74fffa6a1b01114f96bf41f3c62855ca461007cfd63fe824f38eb53d5294c9e6d9090c1e81d344cc43e75aa5f8b7d073992969bf2067e266dfcdd62ba824e75
7
- data.tar.gz: cec724aa534074607f287b5cfb606d35a4d1d10e658515c880d78631e8dd080ad681d0f727970e87187cc9a47ad68b93081af7647ccedfe740cb6c283142a708
6
+ metadata.gz: e7af5c6449cd3fefb2727aeb2f08bc3756f6348e3d395e63407581128b026ce6f8c385f83e108b95ec661657d08b833ae7c140a41339a2ca621a99a2f48a324a
7
+ data.tar.gz: 15dd96b54231c1bf7a9eecc213766eab174839e3766a22b4abc42f35b205a6e67d86ce3971a38d97cf897a40e877674ad5231ed2cbfe0bba1745da39735a9545
data/lib/joules.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing Physics formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Joules module (joules.rb)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing constants
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Constants module (constants.rb)
@@ -12,6 +12,50 @@
12
12
  # Note: This quantity is in meters per second.
13
13
  SPEED_OF_LIGHT = 3.00e8
14
14
 
15
+ # Permeability of free space
16
+ # Note: This quantity is in henries per meter.
17
+ FREE_SPACE_PERMEABILITY = 4 * Math::PI * 1e-7
18
+
19
+ # Permittivity of free space
20
+ # Note: This quantity is in farads per meter.
21
+ FREE_SPACE_PERMITTIVITY = 8.85e-12
22
+
23
+ # Elementary charge
24
+ # Note: This quantity is in coulombs.
25
+ ELEMENTARY_CHARGE = 1.6e-19
26
+
27
+ # Planck constant
28
+ # Note: This quantity is in joule seconds.
29
+ PLANCK_CONSTANT = 6.63e-34
30
+
31
+ # Unified atomic mass unit
32
+ # Note: This quantiy is in kilograms.
33
+ UNIFIED_ATOMIC_MASS_UNIT = 1.66e-27
34
+
35
+ # Rest mass of electron
36
+ # Note: This quantity is in kilograms.
37
+ ELECTRON_MASS = 9.11e-31
38
+
39
+ # Rest mass of proton
40
+ # Note: This quantity is in kilograms.
41
+ PROTON_MASS = 1.67e-27
42
+
43
+ # Molar gas constant
44
+ # Note: This quantity is in joules per kelvin mole.
45
+ MOLAR_GAS_CONSTANT = 8.31
46
+
47
+ # Avogadro constant
48
+ # Note: This quantity is in per mole.
49
+ AVOGADRO_CONSTANT = 6.02e23
50
+
51
+ # Boltzmann constant
52
+ # Note: This quantity is in joules per kelvin.
53
+ BOLTZMANN_CONSTANT = 1.38e-23
54
+
55
+ # Gravitational constant
56
+ # Note: This quantity is in newton metres squared per kilogram squared.
57
+ GRAVITATIONAL_CONSTANT = 6.67e-11
58
+
15
59
  # Acceleration of free fall
16
60
  # Note: This quantity is in meters per second squared.
17
61
  FREE_FALL_ACCELERATION = 9.81
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing density formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Density module (density.rb)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing energy, work, and power formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Energy, work, and power module (energy_work_power.rb)
data/lib/joules/forces.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing forces formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Forces module (forces.rb)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing kinematics formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Kinematics module (kinematics.rb)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing mass and weight formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Mass and weight module (mass_weight.rb)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing momentum and impulse formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Momentum and impulse module (momentum_impulse.rb)
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # @description: Module for providing pressure formulas
5
5
  # @author: Elisha Lai
6
- # @version: 0.0.2 16/05/2015
6
+ # @version: 0.0.3 16/05/2015
7
7
  #==============================================================================
8
8
 
9
9
  # Pressure module (pressure.rb)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elisha Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-16 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " Joules is a library (gem) for providing simple Physics formulas\n
14
14
  \ in kinematics, forces, waves, electricity, and so much more. A\n selection
@@ -52,3 +52,4 @@ signing_key:
52
52
  specification_version: 4
53
53
  summary: A library (gem) for providing Physics formulas
54
54
  test_files: []
55
+ has_rdoc: