Table 1 Operational rules for physical dimensions and units

From: Integrating physical units into high-performance AI-driven scientific computing

Type

Operation

Condition

Result

Mathematical expression

Dimension

+ or  âˆ’ 

Identical dimensions

Same as input dimensions

Dx Â± Dy = Dx

 

× 

None

Component-wise addition of exponents

Dx â‹… Dy = (x1 + y1, â€‰â€¦, â€‰x7 + y7)

 

/ 

None

Component-wise subtraction of exponents

Dx/Dy = (x1 âˆ’ y1, â€¦, x7 âˆ’ y7)

 

∧

Valid scalar exponent

Each dimension exponent scaled by scalar

\({{{{\bf{D}}}}}_{x}^{a}=(a{x}_{1},\ldots,a{x}_{7})\)

Unit

+ or  âˆ’ 

Identical dimensions

Adjusted scale factor

Ux Â± Uy = adjusted_scale(Ux)

 

× 

None

Scale factors summed; dimensions combined multiplicatively

\({{{{\bf{U}}}}}_{x}*{{{{\bf{U}}}}}_{y}=1{0}^{{s}_{x}+{s}_{y}}\cdot {{{{\bf{D}}}}}_{x}{{{{\bf{D}}}}}_{y}\)

 

/ 

None

Scale factors subtracted; dimensions combined divisively

\({{{{\bf{U}}}}}_{x}/{{{{\bf{U}}}}}_{y}=1{0}^{{s}_{x}-{s}_{y}}\cdot {{{{\bf{D}}}}}_{x}/{{{{\bf{D}}}}}_{y}\)

 

∧

Valid scalar exponent

Scale factor multiplied by exponent; dimensions exponentiated

\({{{{\bf{U}}}}}_{x}^{a}=1{0}^{a{s}_{x}}\cdot {{{{\bf{D}}}}}_{x}^{a}\)

  1. D denotes the physical dimension, a vector with seven integers, and U represents the physical unit. Refer to Fig. 1 for details.