Convert
Convert[q,targetUnit]⟹convertedQuantity
converts the provided physical q to the Units of the provided targetUnit.
Convert[value,oldUnit,targetUnit]⟹convertedValue
converts the numeric 'Value' from the oldUnit to the targetUnit.
Convert[values,oldUnits,targetUnits]⟹convertedValues
converts each innermost list in 'Values' from the oldUnits to the targetUnits.
Details
- Emerald version of the Mathematica 10 function UnitConvert.
- The function is listable and can Convert an entire lists of items very quickly if all Units start in the same form (but must move more slowly if there are mixed Units).
-
NotConvertable Can not Convert between Units `1` and `2`.
Input
Output
Messages
Examples
Basic Examples (5)
Additional Examples (13)
The function can Convert from mixed input Units, provided they are of the same type:
Paired lists of Units can be used as inputs as well:
Convert from numeric value to dimensionless unit:
Convert a distribution with units specified separately:
Convert a list of QuantityDistributions:
Coordinates with mixture of quantities and quantity distributions:
Coordinates with mixture of quantities and unitless distributions:
Specify single unit for everything in a QuantityArray:
Specify units at bottom level list in QuantityArray:
Specify units for every element in QuantityArray:
Convert a quantity distribution:
Convert a multi-variate quantity distribution: