5
$\begingroup$

How we can get the list with all physical units and prefixes from WolframAlpha and make symbols from the result to be equal their corresponding quantities like described in this post?

$\endgroup$
9
$\begingroup$

I'm not sure whether this is what you seek, but you can use Trace to investigate in a call to Quantity. Then you extract the essence

Quantity["Newtons"];
StringReplace[Names["CalculateUnits`UnitCommonSymbols`*"], 
 "CalculateUnits`UnitCommonSymbols`" ~~ r_ :> r]

and you get some kind of list ;-)

enter image description here

$\endgroup$
5
  • $\begingroup$ +1 LOL Now I really have to find my glasses $\endgroup$
    – Matariki
    Dec 7 '12 at 6:33
  • $\begingroup$ Amazing. And what planet are some of these from, FluctuationStrengthUnit, HanksWool, ... PleasureUnit? $\endgroup$ Dec 18 '14 at 19:04
  • $\begingroup$ @alancalvitti a few of those are dimensions like "LengthUnit", possible results of UnitDimensions. Probably the units are those that are also in this list. That Q seems like a duplicate of this one $\endgroup$
    – Rojo
    Dec 19 '14 at 0:48
  • $\begingroup$ However, mapping UnitDimensions to the unit list doesn't produce all those weird things such as PleasureUnit, so no idea where that comes from. $\endgroup$
    – Rojo
    Dec 19 '14 at 0:54
  • $\begingroup$ @Rojo, A New Kind of Unit. $\endgroup$ Dec 19 '14 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.