This does what I expect:
Quantity["Kilograms"*"Meters"] // InputForm
Quantity[1, "Kilograms"*"Meters"]
This, on the other hand, bungles the units:
Quantity[1, "Kilograms*Meters"] // InputForm
Quantity[1, "KilogramsForce"*"Meters"]
Note that KilogramsForce
is a unit of force, not mass, and strictly different from Kilograms
. This is not a case of a subtle and understandable misinterpretation as in the case of Kelvins
vs KelvinsDifference
, but a parsing error.
- What do we need to be careful about when writing down units for parsing? How can we prevent parsing errors, other than splitting the units as in the first input line above?
- Are there other cases like this one?
- Is this a residue of Imperial Units parsing, where pounds and pounds-force are sometimes used interchangeably?
- Is this the result of an overly greedy way of interpreting a torque? This parsing error seems specific to the $\text{kg}\cdot\text{m}$ unit and does not occur, e.g., with $\text{kg}\cdot\text{s}$.
Quantity[1, "Kilograms*Meters^2"] // InputForm
is interpreted correctly $\endgroup$