Re: issues with unit package

*To*: mathgroup at smc.vnet.net*Subject*: [mg88644] Re: issues with unit package*From*: Bill Rowe <readnews at sbcglobal.net>*Date*: Sun, 11 May 2008 15:13:57 -0400 (EDT)

On 5/10/08 at 6:54 AM, omaha8master at yahoo.com (Jay Ortiz) wrote: >Why won't Mathematica when using the Units package eliminate >reciprocal units? Consider an example from E&M, finding the >wavelength corresponding to a frequency: ><<Units` <<PhysicalConstants` >In[1]:= >Freq=100*^6 Hertz; Wavelength=SpeedOfLight/Freq >Out[1]=(149896229*Meter)/(50000000*Hertz*Second) >In[2]:=N[Wavelength] Out[2]=(0.299792*Meter)/(Hertz*Second) >i.e. Mathematica doesn't know that Meter/(Hertz Second) should >reduce to Meter. Shouldn't this be handled? This can be handled as follows: In[4]:= (149896229*Meter)/(50000000*Hertz* Second) /. Units`Private`$ToFundamental Out[4]= (149896229 Meter)/50000000