Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to print the real part of a complex variable' topicStudent Support Forum > General > "How to print the real part of a complex variable"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
09/10/12 1:39pm

notice that you need a space between b and I to represent multiplication
z=a + b I

next, use ComplexExpand to let Mathematica "know" that both a and b are real variables



ComplexExpand[Re[z]]


thats it

yehuda

URL: benshimo@bgu.ac.il,

Subject (listing for 'How to print the real part of a complex variable')
Author Date Posted
How to print the real part of a complex variable David Eagle 09/10/12 09:35am
Re: How to print the real part of a complex var... yehuda ben-s... 09/10/12 1:39pm
Re: Re: How to print the real part of a complex... david eagle 09/10/12 2:22pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic