MathGroup Archive 2004

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

Search the Archive

Re: Re: defining variables as Real


I have been using this to define complex variables, although the forum does 
not quite like the syntax.

TagSet[a, Im[a], 0];
TagSet[b, Im[b], 0];
TagSet[a, Re[a], a];
TagSet[b, Re[b], b];
lamda = a + I*b;

----- Original Message ----- 
From: "Drago Ganic" <drago.ganic at in2.hr>
To: mathgroup at smc.vnet.net
Subject: [mg52897] [mg52873] Re: defining variables as Real


> Isn't that package now depreciated (because we now have the assumption
> mechanism)? It's interesting that it's still shipped with the production
> release.
> drago
>
> "Scout" <user at domain.com> wrote in message 
> news:cpmik0$ofv$1 at smc.vnet.net...
>> "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: about Package
  • Next by Date: Re: shuffling (randomizing) a series
  • Previous by thread: Re: defining variables as Real
  • Next by thread: Re: defining variables as Real