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$

1 Answer 1

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
    Commented Dec 7, 2012 at 6:33
  • $\begingroup$ Amazing. And what planet are some of these from, FluctuationStrengthUnit, HanksWool, ... PleasureUnit? $\endgroup$ Commented Dec 18, 2014 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
    Commented Dec 19, 2014 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
    Commented Dec 19, 2014 at 0:54
  • $\begingroup$ @Rojo, A New Kind of Unit. $\endgroup$ Commented Dec 19, 2014 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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