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" and "SolidAngleUnit".
  • Temperatures and temperature differences share a common unit dimension.
  • 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  (2)

Numerical values are considered dimensionless:

Temperatures and temperature differences share a common unit dimension:

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

Text

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

CMS

Wolfram Language. 2012. "UnitDimensions." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. 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

BibTeX

@misc{reference.wolfram_2023_unitdimensions, author="Wolfram Research", title="{UnitDimensions}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/UnitDimensions.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_unitdimensions, organization={Wolfram Research}, title={UnitDimensions}, year={2022}, url={https://reference.wolfram.com/language/ref/UnitDimensions.html}, note=[Accessed: 19-March-2024 ]}