Variables |
|
Mathematical constants.
|
|
BALL_EXTERN_VARIABLE const double | PI |
PI. |
|
BALL_EXTERN_VARIABLE const double | E |
Euler's number - base of the natural
logarithm. |
|
BALL_EXTERN_VARIABLE double | EPSILON |
Internal theshold for equality
comparisons. |
|
Chemical/physical constants.
|
|
BALL_EXTERN_VARIABLE const double | ELEMENTARY_CHARGE |
Elementary charge. |
|
BALL_EXTERN_VARIABLE const double | e0 |
Elementary charge
(alias). |
|
BALL_EXTERN_VARIABLE const double | ELECTRON_MASS |
Electron mass. |
|
BALL_EXTERN_VARIABLE const double | PROTON_MASS |
Proton mass. |
|
BALL_EXTERN_VARIABLE const double | NEUTRON_MASS |
Neutron mass. |
|
BALL_EXTERN_VARIABLE const double | AVOGADRO |
Avogadro constant. |
|
BALL_EXTERN_VARIABLE const double | NA |
Avogadro constant
(alias). |
|
BALL_EXTERN_VARIABLE const double | MOL |
Avogadro constant
(alias). |
|
BALL_EXTERN_VARIABLE const double | BOLTZMANN |
Boltzmann constant. |
|
BALL_EXTERN_VARIABLE const double | k |
Boltzmann constant
(alias). |
|
BALL_EXTERN_VARIABLE const double | PLANCK |
Planck constant. |
|
BALL_EXTERN_VARIABLE const double | h |
Planck constant (alias). |
|
BALL_EXTERN_VARIABLE const double | GAS_CONSTANT |
Gas constant (= NA * k). |
|
BALL_EXTERN_VARIABLE const double | R |
Gas constant (alias). |
|
BALL_EXTERN_VARIABLE const double | FARADAY |
Faraday constant (= NA *
e0). |
|
BALL_EXTERN_VARIABLE const double | F |
Faraday constant (alias). |
|
BALL_EXTERN_VARIABLE const double | BOHR_RADIUS |
Bohr radius. |
|
BALL_EXTERN_VARIABLE const double | a0 |
Bohr radius (alias). |
|
BALL_EXTERN_VARIABLE const double | VACUUM_PERMITTIVITY |
Vacuum permittivity. |
|
BALL_EXTERN_VARIABLE const double | VACUUM_PERMEABILITY |
Vacuum permeability. |
|
BALL_EXTERN_VARIABLE const double | SPEED_OF_LIGHT |
Speed of light. |
|
BALL_EXTERN_VARIABLE const double | c |
Speed of Light (alias). |
|
BALL_EXTERN_VARIABLE const double | GRAVITATIONAL_CONSTANT |
Gravitational constant. |
|
BALL_EXTERN_VARIABLE const double | FINE_STRUCTURE_CONSTANT |
Fine structure constant. |
|
Conversion factors
|
|
BALL_EXTERN_VARIABLE const double | DEG_PER_RAD |
Degree per rad. |
|
BALL_EXTERN_VARIABLE const double | RAD_PER_DEG |
Rad per degree. |
|
BALL_EXTERN_VARIABLE const double | MM_PER_INCH |
mm per inch. |
|
BALL_EXTERN_VARIABLE const double | M_PER_FOOT |
m per foot. |
|
BALL_EXTERN_VARIABLE const double | JOULE_PER_CAL |
Joules per calorie. |
|
BALL_EXTERN_VARIABLE 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 = BALL::Constants::PI
using directive
:
using namespace BALL::Constants;
float my_pi = PI;
BALL_EXTERN_VARIABLE const double BALL::Constants::AVOGADRO |
Avogadro constant.
In units of ().
BALL_EXTERN_VARIABLE const double BALL::Constants::BOHR_RADIUS |
Bohr radius.
In units m ( m).
BALL_EXTERN_VARIABLE const double BALL::Constants::BOLTZMANN |
Boltzmann constant.
In units of J/K ( J/K).
BALL_EXTERN_VARIABLE const double BALL::Constants::CAL_PER_JOULE |
Calories per Joule.
1/JOULE_PER_CAL
BALL_EXTERN_VARIABLE const double BALL::Constants::DEG_PER_RAD |
Degree per rad.
57.2957795130823209
BALL_EXTERN_VARIABLE const double BALL::Constants::ELECTRON_MASS |
Electron mass.
In units of kg ( kg).
BALL_EXTERN_VARIABLE const double BALL::Constants::ELEMENTARY_CHARGE |
Elementary charge.
In units of C ().
BALL_EXTERN_VARIABLE double BALL::Constants::EPSILON |
Internal theshold for equality comparisons.
Default value is 1e-6.
Referenced by BALL::Maths::isEqual(), BALL::Maths::isGreater(), BALL::Maths::isGreaterOrEqual(), BALL::Maths::isLess(), BALL::Maths::isLessOrEqual(), BALL::Maths::isNotEqual(), BALL::Maths::isNotZero(), BALL::Maths::isZero(), and BALL::TQuaternion< T >::toEulerAngles().
BALL_EXTERN_VARIABLE const double BALL::Constants::FINE_STRUCTURE_CONSTANT |
Fine structure constant.
Without unit ().
BALL_EXTERN_VARIABLE const double BALL::Constants::GRAVITATIONAL_CONSTANT |
Gravitational constant.
In units of ().
BALL_EXTERN_VARIABLE const double BALL::Constants::JOULE_PER_CAL |
Joules per calorie.
4.184
BALL_EXTERN_VARIABLE const double BALL::Constants::M_PER_FOOT |
m per foot.
3.048
BALL_EXTERN_VARIABLE const double BALL::Constants::MM_PER_INCH |
mm per inch.
25.4
BALL_EXTERN_VARIABLE const double BALL::Constants::NEUTRON_MASS |
Neutron mass.
In units of kg ( kg).
BALL_EXTERN_VARIABLE const double BALL::Constants::PLANCK |
Planck constant.
In units of Js ( Js).
BALL_EXTERN_VARIABLE const double BALL::Constants::PROTON_MASS |
Proton mass.
In units of kg ( kg).
BALL_EXTERN_VARIABLE const double BALL::Constants::RAD_PER_DEG |
Rad per degree.
0.0174532925199432957
BALL_EXTERN_VARIABLE const double BALL::Constants::SPEED_OF_LIGHT |
Speed of light.
In units of m/s ().
BALL_EXTERN_VARIABLE const double BALL::Constants::VACUUM_PERMEABILITY |
Vacuum permeability.
In units of ().
BALL_EXTERN_VARIABLE const double BALL::Constants::VACUUM_PERMITTIVITY |
Vacuum permittivity.
In units of ().