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:

Wolfram Research (2012), UnitDimensions, Wolfram Language function, https://reference.wolfram.com/language/ref/UnitDimensions.html.

Text

Wolfram Research (2012), UnitDimensions, Wolfram Language function, https://reference.wolfram.com/language/ref/UnitDimensions.html.

BibTeX

@misc{reference.wolfram_2021_unitdimensions, author="Wolfram Research", title="{UnitDimensions}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/UnitDimensions.html}", note=[Accessed: 22-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_unitdimensions, organization={Wolfram Research}, title={UnitDimensions}, year={2012}, url={https://reference.wolfram.com/language/ref/UnitDimensions.html}, note=[Accessed: 22-September-2021 ]}

CMS

Wolfram Language. 2012. "UnitDimensions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnitDimensions.html.

APA

Wolfram Language. (2012). UnitDimensions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnitDimensions.html