Why does Re[] not simplify a fraction with imaginary units in Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 2K views
member 428835
Hi PF!

I have some variables that are all real, and I have a few ##i##s, all in a fraction. When I ask Mathematica to give me the real part of the entire fraction, ##Re[]##, it simply echoes my input, not giving me anything useful. Any help is greatly appreciated.
 
Physics news on Phys.org
Screen Shot 2018-02-24 at 5.59.52 PM.png
 

Attachments

  • Screen Shot 2018-02-24 at 5.59.52 PM.png
    Screen Shot 2018-02-24 at 5.59.52 PM.png
    14.4 KB · Views: 609
You could try using ComplexExpand:
MM.png
 

Attachments

  • MM.png
    MM.png
    2.7 KB · Views: 1,076
phyzguy said:
You could try using ComplexExpand:
View attachment 221008
Yea I've tried this before. I should have been more specific: see what I want is the real component without any imaginary numbers. Like multiplying by the conjugate and simplifying. Do you know if there a built in function that does this?
 
joshmccraney said:
Yea I've tried this before. I should have been more specific: see what I want is the real component without any imaginary numbers. Like multiplying by the conjugate and simplifying. Do you know if there a built in function that does this?

Look again at my post. That's what ComplexExpand does. There are no "i's" in the final answer.
 
  • Like
Likes   Reactions: member 428835
phyzguy said:
Look again at my post. That's what ComplexExpand does. There are no "i's" in the final answer.
Ohhhhh shooot, sorry! I saw the variable ##\lambda i## and thought there was an ##i## in the solution. Sorry and thanks!