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