How can we list all available physical quantities in Mathematica?
Asked
Active
Viewed 169 times
0
1 Answers
3
Evaluate the following:
Quantity; (*only needed to establish symbol Quantity in symbol table*)
canonicalUnits = Keys @ QuantityUnits`Private`$UnitReplacementRules;
canonicalUnits is a big list. In V11.0.1
Length @ canonicalUnits
gives 4959. It contains more than just physical quantities. Here is a sample.
SeedRandom[42];
RandomSample[canonicalUnits, 20]
{"PlotterUnits", "AmagatDensityUnit", "Semimonthly", "Orguias", "Kiloleagues", "BrakeHorsepower", "Millioersteds", "Gigahenries", "BarrelsOfOil", "LinearInches", "RomanLibras", "LaoAtt", "Virgates", "Ris", "MegatonsOfOilEquivalentIT", "BritishMaunds", "LoschmidtConstant", "Coulombs", "Nanowatts", "Marks"}
m_goldberg
- 107,779
- 16
- 103
- 257
-
Actually, I was looking for the names of the quantities, not the units, e.g., "Time", "Lenght", etc.. – materia-nigra Dec 27 '16 at 03:37
-
@Fred. "Time", "Length", etc. are just strings. They have no supported special meaning in Mathematica. – m_goldberg Dec 27 '16 at 04:02
-
But aren't they recongnized by
QuantityVariable? On documentation: "Supported physical quantities include both physical and chemical quantities such as "Length", "ElectricCurrent", and "ChemicalPotential", as well as mathematical and financial quantities such as "Angle" and "Money"." – materia-nigra Dec 27 '16 at 04:04 -
When I type in free form input:
magnetic flux, the output is aQuantityVariable– materia-nigra Dec 27 '16 at 04:14
UnitDimensions, correct? – Edmund Dec 27 '16 at 04:07Quantityto createQuantityobjects;Quantity[1, "Feet"], andUnitDimensions["Feet"]tells you that"Feet"is a unit of length. So ... – Edmund Dec 27 '16 at 04:14QuantityVariable's in Mathematica. For example, those supported by but not limited to"QuantityVariablePhysicalQuantities"property ofFormulaData. – Edmund Dec 27 '16 at 04:42