[100] 030 Tutorial constants - msharpmath, The Simple is the Best

advertisement
[100] 030
[100] 030
Constants,
Tutorial by www.msharpmath.com
revised on 2012.10.28
cemmath
The Simple is the Best
Constants
//----------------------------------------------------------// Physical constants
//----------------------------------------------------------// Each constant starts with a single '_' (underline)
//----------------------------------------------------------_alpha = 0.0072973525376
// fine-structure const
_c0 = 2.99792458 x 10^8
// speed of light [m/s]
_eC = 1.602176487 x 10^-19
// elementary charge [C]
_eV = 1.7827 x 10^-36
// electron volt [kg]
_e0 = 8.854187817 x 10^-12
// electric const [F/m]
_F = 96485.33977318
// Faraday const [C/mol]
_g = 9.80665
// earth's gravity [m/s^2]
_gc = 32.174
// earth's gravity in British unit [ft/s^2]
_G = 6.673 x 10^-11
// gravitational const [m^3/(kg.s^2)]
_G0 = 7.7480917004 x 10^-5
// conductance quantum [ohm^-1]
_h = 6.62606896 x 10^-34
_k = 1.3806504 x 10^-23
_ke = 8.987551787368176 x 10^9
_muB = 9.27400915
_mu0 = 1.2566370614 x 10^-6
//
//
//
//
//
Planck's const [J.s]
Boltzmann const [J/K]
Coulomb const [N.m^2/C^2]
Bohr magneton [J/T], T=tesla
magnetic const [N/A^2]
_m_e
_m_m
_m_n
_m_p
_m_t
//
//
//
//
//
electron mass [kg]
muon mass [kg]
neutron mass [kg]
proton mass [kg]
tau mass [kg]
_m_u = 1.660538782 x 10^-27
_NA = 6.02214179 x 10^23
_phi0 = 2.067833667 x 10^-15
_R = 8.31447247122
_Rinf = 1.0973731568527 x 10^7
//
//
//
//
//
atomic mass [kg]
Avogadro's const [mol^-1]
magnetic flux quantum [Wb],
molar gass const [J/(mol.K)]
Rydberg const [m^-1]
_sigma = 5.6704 x 10^-8
_Z0 = 376.73031346177
// Stefan-Boltzmann[W/(m^2.K^4)]
// Impedance of vacuum [ohm]
=
=
=
=
=
9.10938215 x 10^-31
1.8835313 x 10^-28
1.674927211 x 10^-27
1.672621637 x 10^-27
3.16777 x 10^-27
1
[100] 030
Constants,
#> _F - _NA*_eC ;
ans = -9.167706593871117e-010
Tutorial by www.msharpmath.com
// relation check, _F =_NA*_eC
//----------------------------------------------------------// Mathematical constants
//----------------------------------------------------------#> pi ; // 3.14159 26535 89793 23846 26433 83279 ...
ans = 3.141592653589793
#> _e ; // exp(1)
ans = 2.718281828459045
#> _gamma ; // Euler-Mascheroni const
ans = 0.5772156649015329
#> _eps ; // machine epsilon
ans = 2.22e-16
//----------------------------------------------------------// Summary of Unit constants in Cemmath
//----------------------------------------------------------Unit constants are expressed in reference units,
[kg] [s] [m] [m^2] [m^3] [m/s] [m/s^2]
[K] [kN] [kJ] [kW] [kPa] [kN.m] [kg/m^3]
The followings are only for named units. Other derived units are calculated by
using unit constants. For example,
#> 5 * _oz/_in^3 ; // ounce-mass per cubic inch
ans = 8649.9452
results in a conversion into [kg/m^3].
//----------------------------------------------------------_A = 10^-10 [m]
// Angstrom
_acre = 4046.8564224 [m^2]
// acre, or _ac
_atm = 101.32501 [kPa]
_atmtec = 98.0665 [kPa]
_au = 1.496 x 10^11 [m]
// atmosphere
// atmosphere technical, kgf/cm^2
// astronomical unit
2
[100] 030
_bar
_bbl
_bhp
_BTU
_cal
_Cal
=
=
=
=
=
=
Constants,
100 [kPa]
0.159 [m^3]
9.810657 [kW]
1.0550559 [kJ]
0.0041868 [kJ]
4.1868 [kJ]
_cc = 10^6 [m^3]
_cm = 0.01 [m]
_cm2 = 10^-4 [m^2]
_cm3 = 10^-6 [m^3]
_cmAq = 0.0980638 [kPa]
Tutorial by www.msharpmath.com
//
//
//
//
//
//
bar
barrel (petroleum), or_barrel
boiler horse power
British Thermal Unit
calorie
kilo calorie
//
//
//
//
//
cubic centimeter, _mL
centimeter
square centimeter
milliliter or cubic centimeter
cm of water
_cmHg = 1.3332237 [kPa]
// cm of mercury
_cup = 236.588 x 10^-6 [m^3]
// cup
_Cup = 284.130625 x 10^-6 [m^3] // cup(UK)
_c0 = 2.9979246 x 10^8 [m/s]
// speed of light
_day = 86400 [s]
// day
_dL = 0.0001 [m^3]
_dyne = 10^-8 [kN]
_erg = 10^-10 [kJ]
_floz = 29.5735 x 10^-6 [m^3]
_Floz = 28.4130625 x 10^-6 [m^3]
//
//
//
//
//
deci-liter
dyne, or _dyn
erg
fluid oz
ounce(UK)
_ft = 0.3048 [m]
_ft2 = 0.09290304 [m^2]
_ft3 = 0.028316846592 [m^3]
_gal = 0.00378541 [m^3]
_Gal = 0.00454609 [m^3]
//
//
//
//
//
feet
square feet
cubic feet
gallon
gallon (UK)
_gill = 118.2941 x 10^-6 [m^3]
_Gill = 142.0653125 x 10^-6 [m^3]
_GJ = 10^6 [kJ]
_GN = 10^6 [kN]
_GPa = 10^6 [kPa]
_gr = 6.479891 x 10^5 [kg]
// gill
// gill(UK)
// giga Joule
// giga newton
// giga Pascal
// grain
_gram = 0.001 [kg]
_GW = 10^6 [kW]
_gyr = 31556952 [s]
_ha = 10000 [m^2]
_hp = 0.74569987 [kW]
//
//
//
//
//
gram
giga Watt
gregorian year
hectare
horse power (internat'l)
_hPa = 0.1 [kPa]
_hph = 2684.5195 [kJ]
_hpm = 0.73549875 [kW]
_hr = 3600 [s]
//
//
//
//
hecto Pascal
horsepower-hour, _hp*_hr
horse power (metric)
hour, or _hour
3
[100] 030
Constants,
Tutorial by www.msharpmath.com
_in = 0.0254 [m]
_in2 = 6.4516 x 10^-4 [m^2]
_in3 = 16.387064 x 10^-6 [m^3]
_inAq = 0.249089 [kPa]
_inHg = 3.386389 [kPa]
_J = 0.001 [kJ]
//
//
//
//
//
//
inch
square inch
cubic inch
inch of water
inch of mercury
Joule
_jyr = 31557600 [s]
_kcal = 4.1868 [kJ]
_kg = 1 [kg]
_kgf = 0.00980665 [kN]
_kip = 4.4482216 [kN]
//
//
//
//
//
julian year
kilo calorie
kilogram
kilogram-force
1000 * _lbf
_kJ = 1 [kJ]
_km = 1000 [m]
_km2 = 10^6 [m^2]
_km3 = 10^9 [m^3]
_kmph = 0.27777778 [m/s]
//
//
//
//
//
kilo Joule
kilometer
square kilometer
cubic kilometer
kilometer per hour, or _kmphr
_kN = 1 [kN]
_knot = 0.514444 [m/s]
_kPa = 1 [kPa]
_ksi = 6894.7573 [kPa]
_ksf = 47.880279 [kPa]
//
//
//
//
//
kilo newton
knot, or_kn
kilo Pascal
1000 * _psi
1000 * _psf
_kt = 0.0002052 [kg]
_kW = 1 [kW]
_kWh = 3600 [kJ]
_L = 0.001 [m^3]
_lb = 0.45359237 [kg]
//
//
//
//
//
carat, or _carat
kilo Watt
_kW*_hr
liter
pound-mass, or _lbm
_lbf = 0.0044482216 [kN]
_ly = 9.4607 x 10^15 [m]
_lyr = 31622400 [s]
_m = 1 [m]
_m2 = 1 [m^2]
_m3 = 1 [m^3]
//
//
//
//
//
//
pound-force
light year
leap year
meter
square meter
cubic meter
_mach = 320 [m/s]
_mb = 0.1 [kPa]
_mg = 10^-6 [kg]
_mi = 1609.344 [m]
_mi2 = 2589988.110336 [m^2]
//
//
//
//
//
mach, typical value 320 m/s
milli bar, or _mbar
milligram
mile
square mile
_mi3 = 4.16818182544058 x 10^9 [m^3] // cubic mile
_min = 60 [s]
// minute
_mJ = 10^-6 [kJ]
// milli Joule
_MJ = 1000 [kJ]
// mega Joule
4
[100] 030
Constants,
Tutorial by www.msharpmath.com
_mL = 10^-6 [m^3]
_mm = 0.001 [m]
_mm2 = 10^-6 [m^2]
_mm3 = 10^-9 [m^3]
_mmAq = 0.00980638 [kPa]
_mmHg = 0.13332237 [kPa]
//
//
//
//
//
//
milli-liter, _cc = _cm^3
millimeter
square millimeter
cubic millimeter
mm of water
mm of mercury, _torr
_MN = 1000 [kN]
_MPa = 1000 [kPa]
_mph = 0.44704 [m/s]
_ms = 0.001 [s]
_mum = 10^-6 [m]
//
//
//
//
//
mega newton
mega Pascal
mile per hour, _mi/_hr
milli second
micrometer, micron
_mus = 10^-6 [s]
_MW = 1000 [kW]
_mW = 10^-6 [kW]
_N = 0.001 [kN]
_nm = 10^-9 [m]
//
//
//
//
// micro second
mega Watt
milli Watt
newton
nano meter
_nmi = 1852 [m]
_ns = 10^-9 [s]
_oz = 0.0283495 [kg]
_ozf = 0.000278014 [kN]
_Pa = 0.001 [kPa]
//
//
//
//
//
nautical mile
nano second
ounce-mass, or _ozm
ounce-force
Pascal
_pc = 3.0857 x 10^16 [m]
_pdl = 0.000138255 [kN]
_psi = 6.8947573 [kPa]
_psf = 0.047880279 [kPa]
_pt = 473.1765 x 10^-6 [m^3]
//
//
//
//
//
parsec
poundal
_lbf/_in^2
_lbf/_ft^2
pint
_Pt = 568.26125 x 10^-6 [m^3]
_py = 3.30579 [m^2]
_qt = 946.35296 x 10^-6 [m^3]
_Qt = 1136.5225 x 10^-6 [m^3]
_s = 1 [s]
_slug = 14.5939 [kg]
//
//
//
//
//
//
pint(UK) //_Pint
pyung
quart
quart(UK) //_Quart
second
slug
_stone = 6.3502932 [kg]
_tbsp = 14.78676 x 10^-6 [m^3]
_Tbsp = 14.20653125 x 10^-6 [m^3]
_therm = 105480.4 [kJ]
_Therm = 105505.59 [kJ]
//
//
//
//
//
stone
tablespoon
tablespoon(UK)
(US)
(Europe)
_ton = 1000 [kg]
_Ton = 907.1847 [kg]
_tonf = 9.80665 [kN]
_Tonf = 8.8964432 [kN]
//
//
//
//
ton
English ton
ton-force
English ton-force
5
[100] 030
Constants,
Tutorial by www.msharpmath.com
_torr = 0.13332237 [kPa]
_tsp = 4.92892 x 10^-6 [m^3]
_Tsp = 3.5516328125 x 10^-6 [m^3]
_W = 0.001 [kW]
_week = 604800 [s]
_Wh = 3.6 [kJ]
//
//
//
//
//
//
torr, mmHg
teaspoon
teaspoon(UK)
Watt
week
_W*_hr
_yd = 0.9144 [m]
_yd2 = 0.83612736 [m^2]
_yd3 = 0.764554857984 [m^3]
_yr = 31536000 [s]
//
//
//
//
yard
square yard
cubic yard
non-leap year
//---------------------------------------------------------------------// end of file
//----------------------------------------------------------------------
6
Download