Is there a tutorial page that have all Mathematica units? I sometimes have hard time figuring out the correct unit spelling when using quantities
Answer
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]}]]]
Comments
Post a Comment