Group Abstract Group Abstract

Message Boards Message Boards

Get the Real part of a complex function with ComplexExpand and Re?

Posted 7 years ago
Attachment

Attachments:
POSTED BY: Daniel Voloshin
3 Replies
Posted 7 years ago

This is just to illustrate, in code, Gianlucas and Murrays earlier replies:

In[1]:= r[w_] := 200/(I w (10 I w + 1))

In[2]:= t = r[q]
Out[2]= -((200 I)/((1 + 10 I q) q))

In[3]:= ComplexExpand@Re@t
Out[3]= -(2000/(1 + 100 q^2))
POSTED BY: Hans Milton
POSTED BY: Murray Eisenberg

You answered yourself: ComplexExpand is made precisely for that purpose:

ComplexExpand[ReIm[r[w]]]

I don't know why Simplify does not do the job automatically in your example.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard