Mathematical and physical constants#

Python module dendra.const.

dendra.const

Mathematical and physical constants used throughout Dendra.

All values are plain Python float constants (TorchScript-friendly).

PI: Final[float] = 3.141592653589793#

\(\pi\), ratio of a circle’s circumference to its diameter.

E: Final[float] = 2.718281828459045#

Euler’s number.

TAU: Final[float] = 6.283185307179586#

\(\tau = 2\pi\).

R: Final[float] = 8314.46261815324#

Molar gas constant in Dendra’s millivolt convention.

The value has units mV·C/(mol·K), so R * temperature / FARADAY is in mV when FARADAY is expressed in C/mol. It is numerically equal to the gas constant in J/(kmol·K).

FARADAY: Final[float] = 96485.33212331001#

Faraday constant in SI units of C/mol.