returns the canonical unit associated with the specified quantityvariable.


  • QuantityVariableCanonicalUnit returns the canonical unit for the physical quantity of the quantityvariable.
  • quantityvariable can be a QuantityVariable, a combination of QuantityVariable objects or the Derivative of a QuantityVariable.
  • A unit can be a string or product of strings.
  • Supported physical quantities include both physical and chemical quantities such as "Length", "ElectricCurrent", and "ChemicalPotential", as well as mathematical and financial quantities such as "Angle" and "Money".
  • Supported units include all those specified by NIST Special Publication 811.


open allclose all

Basic Examples  (1)

Find the canonical unit for a physical quantity:

Use the single- or two-argument form of QuantityVariable:

Scope  (2)

Determine the canonical unit of the Derivative of a QuantityVariable:

Discover the canonical unit of an arbitrary combination of QuantityVariable objects and their derivatives:

Applications  (2)

Find the canonical units for physical quantities of a formula:

Use these as a basis for determining valid inputs for formulas:

Find the canonical units for common electrical physical quantities:

Introduced in 2014
Updated in 2019