MathGroup Archive 2004

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

Search the Archive

Re: defining variables as Real

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52845] Re: defining variables as Real
  • From: "Scout" <user at domain.com>
  • Date: Tue, 14 Dec 2004 06:00:09 -0500 (EST)
  • References: <cpjom6$nf1$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"symbio" <symbio at has.com> ha scritto nel messaggio 
news:cpjom6$nf1$1 at smc.vnet.net...
> Is there anyway in Mathematica to define a variable as say Real or 
> Imaginary
> or greater than zero, etc.. in the very beginning of all calculations and
> keep it that way throughout, instead of having to use simplify with
> assumptions each time?
>

Loading the package <<Algebra`ReIm`
you can declare any symbol to have an imaginary or a real part of zero
for a real or imaginary number rispectively.
i.e. x /: Im[x] = 0  declares the symbol x that is now treated as a real 
number.
Is that ?

~Scout~


  • Prev by Date: Re: Remove the higher order terms in series expansion
  • Next by Date: Re: Remove the higher order terms in series expansion
  • Previous by thread: Re: defining variables as Real
  • Next by thread: Re: defining variables as Real