Class: PhysicsPlus::Constants
- Inherits:
-
Object
- Object
- PhysicsPlus::Constants
- Defined in:
- lib/physics_plus/constants.rb
Overview
This module contains physical constants
Constant Summary collapse
- Speed_light_vacuum =
C = 299792458.freeze
- Gravitational_constant =
G = (6.674484 * ( 10 ** (11 * -1.0 ) )).freeze
- Planck_constant =
(6.62607015 * ( 10 ** (34 * -1.0 ) )).freeze
- Reduced_Planck_constant =
(1.0545718 * ( 10 ** (34 * -1.0 ) )).freeze
- Elementary_charge =
(1.602176634 * ( 10 ** (19 * -1.0 ) )).freeze
- Boltzmanns_constant =
(1.380649 * ( 10 ** (23 * -1.0 ) )).freeze
- Planck_mass =
(2.176434 * ( 10 ** (8 * -1.0 ) )).freeze
- Planck_length =
(1.616255 * ( 10 ** (35 * -1.0 ) )).freeze
- Planck_time =
(5.391247 * ( 10 ** (44 * -1.0 ) )).freeze
- Planck_temperature =
(1.416784 * ( 10 ** (32 * 1.0 ) )).freeze
- Fine_structure_constant =
(7.2973525693 * ( 10 ** (3 * -1.0 ) )).freeze
- Electrical_constant =
(8.8541878128 * ( 10 ** (12 * -1.0 ) )).freeze
- Atomic_mass_unit =
(1.66053906660 * ( 10 ** (27 * -1.0 ) )).freeze
- Avogadros_constant =
(6.02214076 * ( 10 ** (23 * 1.0 ) )).freeze
- Electron_volt =
(1.602176634 * ( 10 ** (19 * -1.0 ) )).freeze
- Calorie =
4.1868.freeze
- Liter_atmosphere =
(101325).freeze
- Magnetic_constant =
(1.25663706212 * ( 10 ** (6 * -1.0 ) )).freeze
- Vacuum_impedance =
376.73- Coulombs_constant =
(8.98755 * ( 10 ** (9 * 1.0 ) )).freeze
Class Method Summary collapse
-
.List_different_systems_quantities ⇒ String
List Constants linking different systems of units and conversion factors.
-
.List_electromagnetic_constants ⇒ String
List electromagnetic constants.
-
.List_fundamental_constants ⇒ String
List fundamental constants.
-
.List_planck_quantities ⇒ String
List of planck quantities.
Class Method Details
.List_different_systems_quantities ⇒ String
Returns List Constants linking different systems of units and conversion factors.
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/physics_plus/constants.rb', line 60 def self.List_different_systems_quantities constants = " Fine_structure_constant => 0.0072973525693 (Fine structure constant)\n Electrical_constant => 8.854187812799999e-12 (Electrical constant)\n Atomic_mass_unit => 4.1868 (Atomic mass unit)\n Avogadros_constant => 6.02214076e+23 (Avogadro's constant)\n Electron_volt => 1.6021766340000001e-19 (Electron volt)\n Calorie => 4.1868 (Calorie)\n Liter_atmosphere => 101325 (Liter * atmosphere)\n CONSTANTS\nend\n" |
.List_electromagnetic_constants ⇒ String
Returns List electromagnetic constants.
94 95 96 97 98 99 100 101 |
# File 'lib/physics_plus/constants.rb', line 94 def self.List_electromagnetic_constants constants = " Magnetic_constant => 1.25663706212e-06 (Magnetic constant)\n Vacuum_impedance => 376.73 (Vacuum impedance)\n Electrical_constant => 8.854187812799999e-12 (Electrical constant)\n Coulombs_constant => 8987550000.0 (Coulombs constant)\n CONSTANTS\nend\n" |
.List_fundamental_constants ⇒ String
Returns List fundamental constants.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/physics_plus/constants.rb', line 7 def self.List_fundamental_constants constants = " Speed_light_vacuum => 299792458 (Speed of light)\n Gravitational_constant => 6.674484e-11 (Gravitational constant)\n Planck_constant => 6.62607015e-34 (Constant Plank)\n Reduced_Planck_constant => 1.0545717999999998e-34 (Dirac constant)\n Elementary_charge => 1.6021766340000001e-19 (Elementary charge)\n Boltzmanns_constant => 1.380649e-23 (Boltzmann's constant)\n CONSTANTS\nend\n" |
.List_planck_quantities ⇒ String
Returns List of planck quantities.
38 39 40 41 42 43 44 45 |
# File 'lib/physics_plus/constants.rb', line 38 def self.List_planck_quantities constants = " Planck_mass => 2.176434e-08 (Planck mass)\n Planck_length => 1.616255e-35 (Planck length)\n Planck_time => 5.391246999999999e-44 (Planck time)\n Planck_temperature => 1.4167840000000002e+32 (Planck temperature)\n CONSTANTS\nend\n" |