Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Quantity
Replies: 8   Last Post: Oct 8, 2013 3:10 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bill Rowe

Posts: 1,647
Registered: 3/14/08
Re: Quantity
Posted: Sep 22, 2013 2:26 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 9/21/13 at 4:35 AM, kessler.hannes@gmail.com (H. Ke=C3=9Fler) wrote:

>But what I am especially looking for is the list of the unit strings
>in the correct spelling for Mathematica in
>Quantity[magnitude,unitstring], not only the general overview of
>units in the NIST-website. In the old Units-package (Mathematica 8
>and earlier) each unit was a symbol and a list of all units
>available could be obtained in the correct format and spelling by
>?Units`*. This is obviously not possible anymore as there is no
>package and all units are strings.


There does not seem to be a specific set of unit strings. Note
that doing:

In[1]:= UnitConvert[Quantity[12., "Feet"], "Meters"]

Out[1]= 3.6576 m

returns a result essentially immediately. But doing

In[2]:= UnitConvert[Quantity[12., "Foot"], "Meters"]

Out[2]= 3.6576 m

returns the same result after a small delay. You should see a
brief message indicating Mathematica is interpreting the units.
I believe what is happening here is Mathematica is using Wolfram
Alpha to interpret the unit string which increases the allowable
number of unit strings significantly and makes it essentially
impossible for a user to create a list of allowable unit strings.





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.