chemistry_tools.constants
Scientific constants.
Classes:
|
Represents a scientific constant. |
Data:
The atomic mass constant. |
|
Avogadro’s constant (Avogadro’s number) |
|
Boltzmann constant |
|
Electron Radius |
|
Faraday constant |
|
Molar gas constant |
|
Neutron mass |
|
Planck’s constant |
|
Numerical IUPAC prefixes (e.g. |
|
The speed of light in a vacuum. |
|
Vacuum permittivity |
-
class
Constant
(name, value, unit, symbol=None)[source] Bases:
tuple
Represents a scientific constant.
Methods:
Returns the constant as a float (without the unit).
__int__
()Returns the constant as an integer (without the unit).
__repr__
()Return a nicely formatted representation string
Returns the constant as a
quantities.quantity.Quantity
object.Attributes:
The name of the constant.
An optional symbol for the constant.
The constant’s unit.
The value of the constant.
-
__repr__
() Return a nicely formatted representation string
-
as_quantity
()[source] Returns the constant as a
quantities.quantity.Quantity
object.- Return type
Quantity
-
unit
Type:
Quantity
The constant’s unit.
-
-
prefixes
= {1: 'mono', 2: 'di', 3: 'tri', 4: 'tetra', 5: 'penta', 6: 'hexa', 7: 'hepta', 8: 'octa', 9: 'nona', 10: 'deca', 11: 'undeca', 12: 'dodeca', 13: 'trideca', 14: 'tetradeca', 15: 'pentadeca', 16: 'hexadeca', 17: 'heptadeca', 18: 'octadeca', 19: 'nonadeca', 20: 'icosa', 21: 'henicosa', 22: 'docosa', 23: 'tricosa', 30: 'triaconta', 31: 'hentriaconta', 32: 'dotriaconta', 40: 'tetraconta', 50: 'pentaconta', 60: 'hexaconta', 70: 'heptaconta', 80: 'octaconta', 90: 'nonaconta', 100: 'hecta', 200: 'dicta', 300: 'tricta', 400: 'tetracta', 500: 'pentacta', 600: 'hexacta', 700: 'heptacta', 800: 'octacta', 900: 'nonacta', 1000: 'kilia', 2000: 'dilia', 3000: 'trilia', 4000: 'tetralia', 5000: 'pentalia', 6000: 'hexalia', 7000: 'heptalia', 8000: 'octalia', 9000: 'nonalia'} -
Numerical IUPAC prefixes (e.g. mono-).