Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13610 > unrolled thread

Real and Imaginary Parts of complex functions

Started byBrentt <brenttnewman@gmail.com>
First post2013-02-26 06:09 +0000
Last post2013-02-27 08:05 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Real and Imaginary Parts of complex functions Brentt <brenttnewman@gmail.com> - 2013-02-26 06:09 +0000
    Re: Real and Imaginary Parts of complex functions Szabolcs Horvát <szhorvat@gmail.com> - 2013-02-27 08:05 +0000

#13610 — Real and Imaginary Parts of complex functions

FromBrentt <brenttnewman@gmail.com>
Date2013-02-26 06:09 +0000
SubjectReal and Imaginary Parts of complex functions
Message-ID<kghjhs$s36$1@smc.vnet.net>
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?

[toc] | [next] | [standalone]


#13632

FromSzabolcs Horvát <szhorvat@gmail.com>
Date2013-02-27 08:05 +0000
Message-ID<kgkenc$4dh$1@smc.vnet.net>
In reply to#13610
On 2013-02-26 06:09:00 +0000, Brentt said:

> 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?

You can use ComplexExpand for this.

In[8]:= ComplexExpand[Re[1/(x + y I)]]
Out[8]= x/(x^2 + y^2)

See also http://mathematica.stackexchange.com/q/9340/12 and the links within.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web