WOLFRAM LANGUAGE TUTORIAL
There are two closely related UnitDimensions related to temperature in the Wolfram System: absolute temperature units and temperature difference units.
Absolute Temperature versus Temperature Difference
Quantity expressions that have UnitDimensions with represent an absolute temperature, while those with dimensions of represent the difference between absolute temperatures. It is important to know that the two are related, but not directly interchangeable.
Unit conversion and multiplication are non-commutative operations for absolute temperatures, which means conversion and then multiplication will not necessarily result in the same result as multiplication and then conversion. Here is an example.
Temperature difference units, however, can be freely multiplied and converted.
Plus will operate on the sum of temperature units and temperature difference units, and on the sum of temperature difference units, but not always on the sum of just temperature units.
Calculate the sum of an absolute temperature and a temperature difference.
Calculate the sum of two temperature differences.
A sum cannot generally be calculated for two different absolute temperatures.
However, the sum of two measures of absolute temperature, with the same unit, can be calculated.
A sum can also be calculated for two different absolute temperatures, if both are SI measures (i.e. have a base of kelvins).
Multiplication and unit conversions are non-commutative for absolute temperatures.
Because of this non-commutative trait, multiplication of different absolute temperatures may not evaluate.
When working with absolute temperatures, it is imperative to first standardize the units, to allow for proper unit conversions.
The single-argument form of UnitConvert
will convert any temperature to kelvins.