Re: Re[] function
- To: mathgroup at smc.vnet.net
- Subject: [mg105990] Re: Re[] function
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Wed, 30 Dec 2009 04:10:16 -0500 (EST)
- References: <hh9vbs$1n5$1@smc.vnet.net>
"Fabian" <fabian.uriarte at gmail.com> wrote in message news:hh9vbs$1n5$1 at smc.vnet.net... > Dear Group- > > Why can't Mathematica evaluate "Re[]" here ? > > {Rm, Xm} \[Element] Reals; > Z = (Rm*\[ImaginaryJ] Xm)/(Rm + \[ImaginaryJ]*Xm); > Z = ComplexExpand[Z] > Re[Z] > > -Thank you > When I run your code, I get erros from Mathematica 7: In[1]:= Element[{Rm, Xm}, Reals]; Z = (Rm*I*Xm)/(Rm + I*Xm); Z = ComplexExpand[Z] Re[Z] During evaluation of In[1]:= Set::wrsym:Symbol {At Line = 2, the input was:,Z=(Rm*\[ImaginaryJ] Xm)/(Rm+\[ImaginaryJ]*Xm);,Z} is Protected. >> During evaluation of In[1]:= Set::wrsym:Symbol {At Line = 3, the input was:,Z=ComplexExpand[Z],Z} is Protected. >> Out[3]= Z Out[4]= Re[Z] --Nasser