MathGroup Archive 2008

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

Search the Archive

Re: Re: Setting "attributes" for variables?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94406] Re: [mg94370] Re: Setting "attributes" for variables?
  • From: "Scot Martin" <smartin at seas.harvard.edu>
  • Date: Fri, 12 Dec 2008 06:54:14 -0500 (EST)
  • Organization: Harvard University
  • References: <gho34v$2a$1@smc.vnet.net> <200812110846.DAA01201@smc.vnet.net>
  • Reply-to: <scot_martin at harvard.edu>

Yes, I agree it's an irritating aspect of the "Units". 

Here's the workaround I use:

Assuming[{Positive[Kilogram], Positive[Meter]}, Convert[\[Eta], Pascal
Second]]

The key feature is Assuming[]


-----Original Message-----
From: Jean-Marc Gulliet [mailto:jeanmarc.gulliet at gmail.com] 
Sent: Thursday, December 11, 2008 3:46 AM
To: mathgroup at smc.vnet.net
Subject: [mg94406] [mg94370] Re: Setting "attributes" for variables?

Julian wrote:

<snip>

>  One notable instance is in the units
> package.  I constantly get results like Sqrt[Second^2] when clearly
> that result is simply Second.  Is there any way to fix this?  I'm
> using version 6, by the way.

The following thread, "Calculating with Units", is worth reading:

http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_thread/
thread/ce0feb342ef1e73/f345156f2950e246?lnk=gst&q=Calculating+with+Units#f34
5156f2950e246

http://forums.wolfram.com/mathgroup/archive/2008/Dec/msg00008.html

Regards,
-- Jean-Marc




  • Prev by Date: Re: Difficulty in importing dates and times with functions like
  • Next by Date: Re: Clever way to manipulate lists
  • Previous by thread: Re: Setting "attributes" for variables?
  • Next by thread: Re: Setting "attributes" for variables?