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


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

Re: Real and Imaginary Parts of complex functions

Started byMurray Eisenberg <murray@math.umass.edu>
First post2013-02-27 08:04 +0000
Last post2013-02-27 08:04 +0000
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Real and Imaginary Parts of complex functions Murray Eisenberg <murray@math.umass.edu> - 2013-02-27 08:04 +0000

#13631 — Re: Real and Imaginary Parts of complex functions

FromMurray Eisenberg <murray@math.umass.edu>
Date2013-02-27 08:04 +0000
SubjectRe: Real and Imaginary Parts of complex functions
Message-ID<kgken6$4da$1@smc.vnet.net>
Did you try a search in the Documentation Center? If you do, one of the things you'll find near the top of the hits is

  Complex Numbers (Mathematica Guide)

which includes a list of functions. One of these is:

  ComplexExpand - expand symbolic expressions into real and imaginary parts

Then look at the reference page for that; it's what you want here.

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

The Refine and the assumptions about x and y are superfluous: the whole point of ComplexExpand is that it assumes symbolic variables used within it are already real.


On Feb 26, 2013, at 1:09 AM, Brentt <brenttnewman@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?
>

---
Murray Eisenberg                                    murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                               413 545-2838 (W)
710 North Pleasant Street                         fax   413 545-1801
Amherst, MA 01003-9305





[toc] | [standalone]


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


csiph-web