UnitDimensions

UnitDimensions[unit]

returns a list of base dimensions associated with the specified unit.

UnitDimensions[quantity]

returns a list of base dimensions associated with the unit of the specified quantity.

Details

  • UnitDimensions returns a list of ordered dimension pairs, indicating the magnitude of the unit in that dimension.
  • Physical dimensions are: "AmountUnit", "ElectricCurrentUnit", "LengthUnit", "LuminousIntensityUnit", "MassUnit", "TemperatureUnit", and "TimeUnit".
  • Additional unit dimensions include: "AngleUnit", "InformationUnit", "MoneyUnit", "PersonUnit", "SolidAngleUnit", and "TemperatureDifferenceUnit".
  • UnitDimensions accepts TimeSeries, EventSeries, and TemporalData inputs.

Examples

open allclose all

Basic Examples  (2)

Get the dimensions associated with a unit:

Get the dimensions associated with products of units:

Scope  (3)

Get the unit dimensions from Quantity expressions in a time series:

Get the unit dimensions from Quantity expressions in structured arrays like QuantityArray or SymmetrizedArray objects:

Get the unit dimensions from Quantity expressions in SparseArray and Association specifications:

Applications  (2)

Use UnitDimensions to examine the base dimension of a unit:

Use UnitDimensions to find the base dimension of a unit derived from SI base units:

Properties & Relations  (9)

UnitDimensions returns the base dimension of a unit:

The dimension pairs are returned lexically ordered:

UnitDimensions returns the argument of an IndependentUnit specification together with its power:

UnitDimensions returns one dimension pair for a MixedUnit specification:

UnitDimensions ignores the date in DatedUnit specifications:

An empty list is returned for units without dimension:

A unit given as a prefix only is dimensionless:

UnitDimensions will automatically attempt to interpret an unknown unit string:

UnitDimensions threads over lists:

Possible Issues  (1)

Numerical values are considered dimensionless:

Introduced in 2012
 (9.0)