Expand description
Unit expressions and conversion (metatomic-inspired, SI dimensional analysis).
Supports named base units and simple products/quotients with *, /, ^,
and parentheses (case-insensitive). unit_conversion_factor(from, to) returns
the multiplier x_to = factor * x_from when dimensions match.
Structs§
- Dimension
- Physical dimension exponents: L, T, M, Q (charge), Θ (temperature).
Functions§
- default_
v3_ units_ json - Default LODE units object for new v3 frames.
- parse_
unit_ expression - Parse a unit expression into SI factor and dimension.
- unit_
conversion_ factor - Multiplicative factor:
value_in_to = factor * value_in_from. - validate_
unit_ for_ quantity - Validate that
unithas dimensions appropriate forquantity(length,energy,mass,time,velocity,force). - validate_
v3_ units_ metadata - CON v3 requires
unitsobject with non-emptylengthandenergystrings.