MathGroup Archive 2004

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

Search the Archive

Re: defining variables as Real


"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