MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Units question


Ted Sariyski wrote:
> Working with units I get correct result:
> 
> Sqrt[Meter^2/Second^2] Second)/Meter^2
> 
>   How to tell Mathematica to simplify the result to Meter^-1?
> Simplify and FullSimplify doesn't do the job.

Use Convert:

In[1]:= << Units`

In[2]:= Sqrt[Meter^2/Second^2] Second/Meter^2

Out[2]= (Sqrt[Meter^2/Second^2] Second)/Meter^2

In[3]:= Convert[%, Meter^-1]

Out[3]= 1/Meter

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
   My hand trembles, but my heart does not.
    -- Stephen Hopkins (on signing the US Declaration of Independence)


  • Prev by Date: Re: Units question
  • Next by Date: Re: Turning Derivative into Function (Newbie Question)
  • Previous by thread: Units question
  • Next by thread: Re: Units question