CommonUnits

CommonUnits[{quantity1,quantity2,,quantityn}]

converts quantity1 through quantityn to common units across compatible dimensions.

Details

  • CommonUnits will convert the input list's units to a common unit for each subset of input units with common dimensions.
  • CommonUnits uses heuristic methods to determine a unit that best fits the input data.
  • Operations involving currency units require internet connectivity.

Examples

open allclose all

Basic Examples  (2)

Convert a list of lengths to a common unit:

Convert all units of length and mass to a common unit:

Scope  (4)

Use CommonUnits with a list of Quantity objects:

Use CommonUnits with a QuantityArray object:

CommonUnits can convert quantities with IndependentUnit specifications:

CommonUnits can convert mixed quantities:

Properties & Relations  (3)

CommonUnits converts quantities sharing the same UnitDimensions:

CommonUnits acts on subsets of quantities sharing the same UnitDimensions:

CommonUnits converts quantities with dimensionless units to pure numbers:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_commonunits, organization={Wolfram Research}, title={CommonUnits}, year={2012}, url={https://reference.wolfram.com/language/ref/CommonUnits.html}, note=[Accessed: 22-December-2024 ]}