exatomic.exa.util.constants module

Physical Constants

Tabulated physical constants from NIST. Note that all constants are float objects (with a slightly modified repr). This means that math operations can be performed with them directly. Note that units and uncertainty are included for each value.

constants.Planck_constant         # Planck_constant(6.62607004e-34 +/-8.1e-42)
constants.Planck_constant.unit    # J s
constants.Planck_constant.error   # 9.1e-42
class exatomic.exa.util.constants.Constant(name, units, value, error)[source]

Bases: float

Physical constant with value, units, and uncertainty.

constants.Planck_constant         # Planck_constant(6.62607004e-34 ±8.1e-42)
constants.Planck_constant.unit    # J s
constants.Planck_constant.error   # 9.1e-42