Is there a tutorial page that have all Mathematica units? I sometimes have hard time figuring out the correct unit spelling when using quantities
Asked
Active
Viewed 1,826 times
2 Answers
26
This should list you all available units in Mathematica.
Needs["QuantityUnits`"]
Keys[QuantityUnits`Private`$UnitReplacementRules]
Inspired by eldo I made a little dynamic interface:
Needs["QuantityUnits`"]
table = Keys[QuantityUnits`Private`$UnitReplacementRules];
Panel[DynamicModule[{f = ""},
Column[{Text[Style["Mathematica Unit Search:", Bold]],
InputField[Dynamic[f], String, ContinuousAction -> True],
Dynamic[Union@Flatten[StringCases[#, ___ ~~ f ~~ ___] & /@ table] //
TableForm]}]]]

alexchandel
- 155
- 5
paw
- 5,650
- 23
- 31
-
2
-
That panels make Mathematica 10 crash if pressing "panel format" in the suggestion bar. Can anybody confirm that please? – rhermans Sep 04 '14 at 12:28
-
1
-
Thanks for the confirmation. I'm Not in front of a proper computer now, I will file a report in a few hours unless somebody else does it before me. – rhermans Sep 04 '14 at 13:27
-
-
12
Expanding a little bit on paw's nice discovery:
Needs["QuantityUnits`"]
table = Keys[QuantityUnits`Private`$UnitReplacementRules];
Since this table is very long one can restrict the output, f.e. with
Union @ Flatten[StringCases[#, "Feet" ~~ ___] & /@ table] // TableForm

UPDATE
A similar question could arise with the more than 1000 inbuilt formula names:
formulas = FormulaLookup[All];
Find all formulas including "speed":
(speed =
Union@Flatten[
StringCases[#, ___ ~~ "speed" ~~ ___, IgnoreCase -> True] & /@
formulas]) // Multicolumn

Extract those with FormulaData:
(inter = Intersection[FormulaData[], speed]) // Multicolumn

TraditionalForm@
Framed[Grid[{#, FormulaData[#]} & /@ inter,
Dividers -> All,
Spacings -> {{2, 2}, 3},
Alignment -> Left,
BaseStyle -> {FontFamily -> "Helvetica"},
Background -> {None, {{Hue[.6, .15, .9], GrayLevel[.9]}}},
FrameStyle -> Directive[Thick, White]
],
FrameMargins -> 0.5,
FrameStyle -> GrayLevel[.7]]

eldo
- 67,911
- 5
- 60
- 168
WolframAlpha["units for volume"]orWolframAlpha["SI units"]– Bob Hanlon Sep 03 '14 at 17:09