UnityDimensions

UnityDimensions
is an option for UnitSimplify that specifies which UnitDimensions should be factored out.

DetailsDetails

  • The default value for UnityDimensions is {}.
  • UnityDimensions specifications should be a list of base dimensions associated with a quantity or Automatic. Typical dimensions include:
  • "AngleUnit"units of angular measure such as "Radians"
    "SolidAngleUnit"units of solid angle such as "Steradians"
    "LengthUnit"units of length such as "Meters", "Feet", and "Miles"
    "MassUnit"units of mass such as "Kilograms" and "Pounds"
    "TimeUnit"units of time such as "Seconds", "Days", and "Years"
    "ElectricCurrentUnit"units of electric current such as "Amperes"
    "TemperatureUnit"units of temperature such as "Kelvins" and "Celsius"
    "LuminousIntensityUnit"units of luminous intensity such as "Candelas"
    "AmountUnit"units of substance amount such as "Moles"
  • A UnityDimensions specification of Automatic will factor out both "AngleUnit" and "SolidAngleUnit" dimensions.
  • UnitSimplify will factor UnityDimensions specifications out of unit expressions by first reducing them to their "SIBase" units.
  • UnityDimensions can also take counting unit dimensions, such as "PersonUnit".

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

UnitSimplify will not automatically cancel out angle units like "Revolutions":

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

UnityDimensions can be used to factor out angular units:

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

Use UnityDimensions to factor "Radians" out of a unit comparison:

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

Use UnityDimensions->Automatic to remove both "AngleUnit" and "SolidAngleUnit" dimensions:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)
Translate this page: