-
Notifications
You must be signed in to change notification settings - Fork 0
/
scientific_constants.bc
68 lines (57 loc) · 2.76 KB
/
scientific_constants.bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*************************************
bc program: scientific_constants.bc
author: Steffen Brinkmann
e-mail: [email protected]
comments: - published uner the GPL
- contains particle masses, basic constants, such as
speed of light in the vacuum and the gravitational
constant.
- scale is set to 100
- http://www.chemie.fu-berlin.de/chemistry/general/constants_mathmode.html
*************************************/
/*
This file is part of the bc-extensions.
The bc-extensions is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The bc-extensions is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the bc-extensions. If not, see <http://www.gnu.org/licenses/>.
*/
scale=100
/* -- I -- particle masses: */
mp=1.6726231*10^(-27) /* proton rest mass in kg */
mn=1.6749286*10^(-27) /* neutron rest mass in kg */
me=9.1093897*10^(-31) /* electron rest mass in kg */
mpev=938.28*10^6 /* proton rest mass in eV */
mnev=939.57*10^6 /* neutron rest mass in eV */
meev=.511*10^6 /* electron rest mass in eV */
/* -- II -- general constants: */
c=299792458 /* speed of light in the vacuum in m/s */
h=6.6260755*10^(-34) /* Planck constant in Js */
hbar=1.05457266*10^(-34) /* Planck constant divided by 2*pi in Js */
kb=1.380658*10^(-23) /* boltzmann constant in J/K */
ec=1.60217733*10^(-19) /* elementary charge in C */
na=6.0221367*10^23 /* avogadro number in 1/mol */
epsilon0=8.854187817*10^(-12) /* dielectric constant in C^2/Jm */
mu0=12.566370614 /* permeability of vacuum in T^2*m^3/J */
alpha=.00729735307 /* fine structure constant */
mub=9.2740154*10^(-24) /* Bohr magneton J/T */
mun=5.0507866*10^(-27) /* nuclear magneton J/T */
ge=2.002319304386 /* free electron g factor */
gammae=1.7608592*10^11 /* free electron gyromagnetic ratio in T/s */
mue=-9.2847701*10^(-24) /* electron magnetic moment */
gammap=2.67515255+10^8 /* proton gyromagnetic ratio in water in T/s */
mup=1.41060761*10^(-26) /* proton magnetic moment in J/T */
amu=1.66057*10^(-27) /* atomic mass unit in kg */
a0=5.29177*10^(-11) /* Bohr radius in m */
re=2.81792*10^(-15) /* electron radius in m */
vmol=22.41383 /* molar volume in l/mol */
gh=5.585 /* proton g factor (lande factor) */
grav=6.673*10^(-11) /* gravitational constant m^3/kg*s^2 */
g=9.80665 /* acceleration due to gravity on surface of earth in m/s^2 */
lambdac=2.42631*10^(-12) /* compton wavelength of the electron m */