Quantcast
Channel: Active questions tagged units - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 41

quantity of `Around` with "DimensionlessUnit"

$
0
0
Quantity[1, "DimensionlessUnit"]

gives pure number

1

However,

Quantity[Around[1, 0.1], "DimensionlessUnit"]

still gives

Quantity[Around[0.01`, 0.001`], "DimensionlessUnit"]

instead of pure Around expression. Why?

This will cause some unintended behavior like

Quantity[1, "g"]*Quantity[1, "cm"]/Quantity[Around[1, 0.1], "m"]

will give

Quantity[Around[0.01`, 0.001`], Times["DimensionlessUnit", "Grams"]]

with "DimensionlessUnit" still present instead of simple

Quantity[Around[0.01`, 0.001`], "Grams"]

Is there some fix for this annoying "DimensionlessUnit" when dealing with Around expressions?


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>