Module: Stick::Constants::MKS

Includes:
Units
Included in:
Math
Defined in:
lib/stick/constants/mks.rb

Overview

Constants in the MKS system (meters, kg, sec)

Large assortment of real world contants in standard m kg s types. The constants are stored in the Math::Constants::KMS module, but this is included in Math for direct use by other Math libraries.

Synopsis

Math::SPEED_OF_LIGHT                        #=> 2.99792458e8 m/s
Stick::Constants::SPEED_OF_LIGHT            #=> 2.99792458e8 m/s
Stick::Constants::MKS::SPEED_OF_LIGHT       #=> 2.99792458e8 m/s

Constant Summary collapse

SPEED_OF_LIGHT =

m / s

2.99792458e8.m/s
GRAVITATIONAL_CONSTANT =

m^3 / kg s^2

6.673e-11.m**3/kg*s**2
PLANCKS_CONSTANT_H =

kg m^2 / s

6.62606876e-34.kg*m**2/s
PLANCKS_CONSTANT_HBAR =

kg m^2 / s

1.05457159642e-34.kg*m**2/s
VACUUM_PERMEABILITY =

kg m / A^2 s^2

1.25663706144e-6.kg*m/A**2*s**2
ASTRONOMICAL_UNIT =

m

1.49597870691e11.m
LIGHT_YEAR =

m

9.46053620707e15.m
PARSEC =

m

3.08567758135e16.m
GRAV_ACCEL =

m / s^2

9.80665e0.m/s**2
ELECTRON_VOLT =

kg m^2 / s^2

1.602176462e-19.kg*m**2/s**2
MASS_ELECTRON =

kg

9.10938188e-31.kg
MASS_MUON =

kg

1.88353109e-28.kg
MASS_PROTON =

kg

1.67262158e-27.kg
MASS_NEUTRON =

kg

1.67492716e-27.kg
RYDBERG =

kg m^2 / s^2

2.17987190389e-18.kg*m**2/s**2
BOLTZMANN =

kg m^2 / K s^2

1.3806503e-23.kg*m**2/K*s**2
BOHR_MAGNETON =

A m^2

9.27400899e-24.A*m**2
NUCLEAR_MAGNETON =

A m^2

5.05078317e-27.A*m**2
ELECTRON_MAGNETIC_MOMENT =

A m^2

9.28476362e-24.A*m**2
PROTON_MAGNETIC_MOMENT =

A m^2

1.410606633e-26.A*m**2
MOLAR_GAS =

kg m^2 / K mol s^2

8.314472e0.kg*m**2/K*mol*s**2
STANDARD_GAS_VOLUME =

m^3 / mol

2.2710981e-2.m**3/mol
MINUTE =

s

6e1.s
HOUR =

s

3.6e3.s
DAY =

s

8.64e4.s
WEEK =

s

6.048e5.s
INCH =

m

2.54e-2.m
FOOT =

m

3.048e-1.m
YARD =

m

9.144e-1.m
MILE =

m

1.609344e3.m
NAUTICAL_MILE =

m

1.852e3.m
FATHOM =

m

1.8288e0.m
MIL =

m

2.54e-5.m
POINT =

m

3.52777777778e-4.m
TEXPOINT =

m

3.51459803515e-4.m
MICRON =

m

1e-6.m
ANGSTROM =

m

1e-10.m
HECTARE =

m^2

1e4.m**2
ACRE =

m^2

4.04685642241e3.m**2
BARN =

m^2

1e-28.m**2
LITER =

m^3

1e-3.m**3
US_GALLON =

m^3

3.78541178402e-3.m**3
QUART =

m^3

9.46352946004e-4.m**3
PINT =

m^3

4.73176473002e-4.m**3
CUP =

m^3

2.36588236501e-4.m**3
FLUID_OUNCE =

m^3

2.95735295626e-5.m**3
TABLESPOON =

m^3

1.47867647813e-5.m**3
TEASPOON =

m^3

4.92892159375e-6.m**3
CANADIAN_GALLON =

m^3

4.54609e-3.m**3
UK_GALLON =

m^3

4.546092e-3.m**3
MILES_PER_HOUR =

m / s

4.4704e-1.m/s
KILOMETERS_PER_HOUR =

m / s

2.77777777778e-1.m/s
KNOT =

m / s

5.14444444444e-1.m/s
POUND_MASS =

kg

4.5359237e-1.kg
OUNCE_MASS =

kg

2.8349523125e-2.kg
TON =

kg

9.0718474e2.kg
METRIC_TON =

kg

1e3.kg
UK_TON =

kg

1.0160469088e3.kg
TROY_OUNCE =

kg

3.1103475e-2.kg
CARAT =

kg

2e-4.kg
UNIFIED_ATOMIC_MASS =

kg

1.66053873e-27.kg
ATOMIC_MASS =

kg

1.66053873e-27.kg
GRAM_FORCE =

kg m / s^2

9.80665e-3.kg*m/s**2
POUND_FORCE =

kg m / s^2

4.44822161526e0.kg*m/s**2
KILOPOUND_FORCE =

kg m / s^2

4.44822161526e3.kg*m/s**2
POUNDAL =

kg m / s^2

1.38255e-1.kg*m/s**2
CALORIE =

kg m^2 / s^2

4.1868e0.kg*m**2/s**2
BTU =

kg m^2 / s^2

1.05505585262e3.kg*m**2/s**2
THERM =

kg m^2 / s^2

1.05506e8.kg*m**2/s**2
HORSEPOWER =

kg m^2 / s^3

7.457e2.kg*m**2/s**3
BAR =

kg / m s^2

1e5.kg/m*s**2
STD_ATMOSPHERE =

kg / m s^2

1.01325e5.kg/m*s**2
TORR =

kg / m s^2

1.33322368421e2.kg/m*s**2
METER_OF_MERCURY =

kg / m s^2

1.33322368421e5.kg/m*s**2
INCH_OF_MERCURY =

kg / m s^2

3.38638815789e3.kg/m*s**2
INCH_OF_WATER =

kg / m s^2

2.490889e2.kg/m*s**2
PSI =

kg / m s^2

6.89475729317e3.kg/m*s**2
POISE =

kg m^-1 s^-1

1e-1.kg*m**-1*s**-1                    # kg m^-1 s^-1
STOKES =

m^2 / s

1e-4.m**2/s
FARADAY =

A s / mol

9.6485341472e4.A*s/mol
ELECTRON_CHARGE =

A s

1.602176462e-19.A*s
GAUSS =

kg / A s^2

1e-4.kg/A*s**2
STILB =

cd / m^2

1e4.cd/m**2
LUMEN =

cd sr

1e0.cd*sr
LUX =

cd sr / m^2

1e0.cd*sr/m**2
PHOT =

cd sr / m^2

1e4.cd*sr/m**2
FOOTCANDLE =

cd sr / m^2

1.076e1.cd*sr/m**2
LAMBERT =

cd sr / m^2

1e4.cd*sr/m**2
FOOTLAMBERT =

cd sr / m^2

1.07639104e1.cd*sr/m**2
CURIE =

1 / s

3.7e10/1.s
ROENTGEN =

A s / kg

2.58e-4.A*s/kg
RAD =

m^2 / s^2

1e-2.m**2/s**2
SOLAR_MASS =

kg

1.98892e30.kg
BOHR_RADIUS =

m

5.291772083e-11.m
VACUUM_PERMITTIVITY =

A^2 s^4 / kg m^3

8.854187817e-12.A**2*s**4/kg*m**3
NEWTON =

kg m / s^2

1e0.kg*m/s**2
DYNE =

kg m / s^2

1e-5.kg*m/s**2
JOULE =

kg m^2 / s^2

1e0.kg*m**2/s**2
ERG =

kg m^2 / s^2

1e-7.kg*m**2/s**2

Method Summary

Methods included from Units

append_features, #const_missing, #method_missing, with_unit_converter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stick::Units