MathGroup Archive 2013

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

Search the Archive

Re: Real and Imaginary Parts of complex functions


Just use ComplexExpand with assumes that all variables are Reals
unless otherwise specified.

Re[x + y*I] // ComplexExpand

x

Re[1/(x + y*I)] // ComplexExpand

x/(x^2 + y^2)


Bob Hanlon


On Tue, Feb 26, 2013 at 1:09 AM, Brentt <brenttnewman at gmail.com> wrote:
>
> Hello,
>
> I was wondering why this works
>
> IN[]:= Refine[Re[x + y I], Element[x , Reals] && Element[y , Reals]]
>
> Out[]:= x
>
> But this does not
>
> In[]:= Refine[Re[1/(x + y I)], Element[x , Reals] && Element[y , Reals]]
>
> Out[]:= Re[1/(x + y I)]
>
>
>
> Is there a nice built in way to get the real and imaginary parts of a
> complex function?
>
>



  • Prev by Date: Re: Compiling numerical iterations
  • Next by Date: Re: i^2=1
  • Previous by thread: Real and Imaginary Parts of complex functions
  • Next by thread: Re: Real and Imaginary Parts of complex functions