This namespace contains definitions for some basic mathematical and physical constants. All constants are double precision.
There are basically two ways of accessing these constants:
float my_pi = OpenMS::Constants::PI
using directive
: using namespace OpenMS::Constants;
float my_pi = PI;
Variables | |
Mathematical constants. | |
const double | PI |
PI. | |
const double | E |
Euler's number - base of the natural logarithm. | |
double | EPSILON |
Chemical/physical constants. | |
const double | ELEMENTARY_CHARGE |
const double | e0 |
Elementary charge (alias). | |
const double | ELECTRON_MASS |
const double | PROTON_MASS |
const double | NEUTRON_MASS |
const double | AVOGADRO |
const double | NA |
const double | MOL |
const double | BOLTZMANN |
const double | k |
const double | PLANCK |
const double | h |
const double | GAS_CONSTANT |
const double | R |
const double | FARADAY |
const double | F |
const double | BOHR_RADIUS |
const double | a0 |
const double | VACUUM_PERMITTIVITY |
const double | VACUUM_PERMEABILITY |
const double | SPEED_OF_LIGHT |
const double | c |
const double | GRAVITATIONAL_CONSTANT |
const double | FINE_STRUCTURE_CONSTANT |
Conversion factors | |
const double | DEG_PER_RAD |
const double | RAD_PER_DEG |
const double | MM_PER_INCH |
const double | M_PER_FOOT |
const double | JOULE_PER_CAL |
const double | CAL_PER_JOULE |
const double a0 |
Bohr radius (alias)
const double AVOGADRO |
Avogadro constant. In units of (
).
const double BOHR_RADIUS |
Bohr radius. In units m ( m).
const double BOLTZMANN |
Boltzmann constant. In units of J/K ( J/K).
const double c |
Speed of Light (alias)
const double CAL_PER_JOULE |
Calories per Joule. 1/JOULE_PER_CAL
const double DEG_PER_RAD |
Degree per rad. 57.2957795130823209
const double E |
Euler's number - base of the natural logarithm.
const double e0 |
Elementary charge (alias).
const double ELECTRON_MASS |
Electron mass. In units of kg ( kg).
const double ELEMENTARY_CHARGE |
Elementary charge. In units of C ().
const double F |
Faraday constant (alias)
const double FARADAY |
Faraday constant (= NA * e0)
const double FINE_STRUCTURE_CONSTANT |
Fine structure constant. Without unit ().
const double GAS_CONSTANT |
Gas constant (= NA * k)
const double GRAVITATIONAL_CONSTANT |
Gravitational constant. In units of (
).
const double h |
Planck constant (alias)
const double JOULE_PER_CAL |
Joules per calorie. 4.184
const double k |
Boltzmann constant (alias)
const double M_PER_FOOT |
m per foot. 3.048
const double MM_PER_INCH |
mm per inch. 25.4
const double MOL |
Avogadro constant (alias)
const double NA |
Avogadro constant (alias)
const double NEUTRON_MASS |
Neutron mass. In units of kg ( kg).
const double PI |
PI.
const double PLANCK |
Planck constant. In units of Js ( Js).
const double PROTON_MASS |
Proton mass. In units of kg ( kg).
const double R |
Gas constant (alias)
const double RAD_PER_DEG |
Rad per degree. 0.0174532925199432957
const double SPEED_OF_LIGHT |
Speed of light. In units of m/s ().
const double VACUUM_PERMEABILITY |
Vacuum permeability. In units of (
).
const double VACUUM_PERMITTIVITY |
Vacuum permittivity. In units of (
).
Generated Tue Apr 1 15:36:49 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |