MathGroup Archive 2009

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

Search the Archive

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 



  • Prev by Date: Re: simplifying a system of equations
  • Next by Date: Re: algebraic numbers
  • Previous by thread: Re: Re[] function
  • Next by thread: Re: function