QuantityVariableCanonicalUnit

QuantityVariableCanonicalUnit[quantityvariable]
returns the canonical unit associated with the specified quantityvariable.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Find the canonical unit for a physical quantity:

In[1]:=
Click for copyable input
Out[1]=

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

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)