MixedUnit

MixedUnit[{unit1,unit2,,unitn}]

represents a mixed-unit expression consisting of units unit1 through unitn.

Details

Examples

open allclose all

Basic Examples  (2)

Represent the mixed quantity 1 foot, 2 inches:

Use it in Quantity operations:

MixedUnit can be used as a target unit specification in functions like UnitConvert:

Scope  (2)

MixedUnit can be used in conjunction with MixedMagnitude in Quantity expressions:

MixedUnit can be used in conjunction with MixedMagnitude in QuantityArray expressions:

Properties & Relations  (9)

Additions of Quantity expressions involving MixedMagnitude and MixedUnit specifications automatically convert some of them:

QuantityDistribution automatically converts mixed Quantity expressions to non-mixed Quantity expressions:

MixedUnit specifications can be extracted using QuantityUnit:

KnownUnitQ returns True for valid MixedUnit specifications:

It returns False for invalid MixedUnit specifications:

CompatibleUnitQ returns True for MixedUnit specifications having identical unit dimensions:

It returns False for MixedUnit specifications having different unit dimensions:

Use UnitConvert to convert mixed Quantity expressions to non-mixed Quantity expressions:

Convert to mixed-unit form:

Reproduce the results of DMSList:

Conversion into mixed units effectively performs a NumberDecompose operation:

Introduced in 2016
 (10.4)