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~