Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Real and Imaginary Parts of complex functions
Replies: 3   Last Post: Feb 27, 2013 3:05 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Bill Rowe Posts: 1,647 Registered: 3/14/08
Re: Real and Imaginary Parts of complex functions
Posted: Feb 27, 2013 3:04 AM
 Plain Text Reply

On 2/26/13 at 1:09 AM, brenttnewman@gmail.com (Brentt) wrote:

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

ComplexExpand, for example:

In[3]:= List @@ ComplexExpand[1/(x + y I)]

Out[3]= {x/(x^2 + y^2), -((I*y)/(x^2 + y^2))}

Date Subject Author
2/26/13 Brentt
2/27/13 Bill Rowe
2/27/13 Daniel
2/27/13 szhorvat@gmail.com

© The Math Forum at NCTM 1994-2018. All Rights Reserved.