algolib.physics package

Submodules

algolib.physics.constants module

CODATA-based physical constants in SI units.

Notes

  • All values are provided in SI base units.

  • rel_unc is the relative standard uncertainty. A value of 0.0 indicates an

    exact value as defined by the 2019 SI redefinition (e.g., c, h, e, k_B, N_A).

  • Source label reflects the CODATA release used to curate the numbers.

class algolib.physics.constants.PhysConst(value: float, unit: str, rel_unc: float | None, source: str, symbol: str)[source]

Bases: object

Container for a physical constant in SI units.

Parameters

unitstr

Unit string, e.g. “m s^-1”, “J s”, “C”.

rel_uncfloat | None

Relative standard uncertainty (e.g. 1.5e-10); use 0.0 for exact constants per the 2019 SI definitions.

sourcestr

Provenance label, e.g. “CODATA 2022”.

symbolstr

Conventional symbol such as c, h, k_B.

rel_unc: float | None
source: str
symbol: str
unit: str
value: float

Module contents