Mathematica Real Part

  • Mathematica
  • Thread starter joshmccraney
  • Start date
  • #1
joshmccraney
Gold Member
1,940
98

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
phyzguy
Science Advisor
4,572
1,507
Can you post the code?
 
  • #4
joshmccraney
Gold Member
1,940
98
Last line is output
 
  • #5
29,720
6,060
Looks fine to me. Apparently the expression doesn’t simplify much
 
  • #6
phyzguy
Science Advisor
4,572
1,507
You could try using ComplexExpand:
MM.png
 

Attachments

  • #7
joshmccraney
Gold Member
1,940
98
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?
 
  • #8
phyzguy
Science Advisor
4,572
1,507
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 joshmccraney
  • #9
joshmccraney
Gold Member
1,940
98
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!
 

Related Threads on Mathematica Real Part

Replies
4
Views
6K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
3
Views
3K
Replies
6
Views
6K
Replies
5
Views
1K
Replies
0
Views
635
Replies
3
Views
4K
Top