Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

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

share|improve this answer
    
+1 LOL Now I really have to find my glasses –  Matariki Dec 7 '12 at 6:33
    
Amazing. And what planet are some of these from, FluctuationStrengthUnit, HanksWool, ... PleasureUnit? –  alancalvitti Dec 18 '14 at 19:04
    
@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 –  Rojo Dec 19 '14 at 0:48
    
However, mapping UnitDimensions to the unit list doesn't produce all those weird things such as PleasureUnit, so no idea where that comes from. –  Rojo Dec 19 '14 at 0:54
    
@Rojo, A New Kind of Unit. –  alancalvitti Dec 19 '14 at 23:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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