Re: Separating real part and imaginary part from each
- To: mathgroup at smc.vnet.net
- Subject: [mg101380] Re: Separating real part and imaginary part from each
- From: "Rommel.ua" <rommel.ua at gmail.com>
- Date: Sat, 4 Jul 2009 06:42:11 -0400 (EDT)
- References: <h24r0t$rn7$1@smc.vnet.net> <h27fiv$cq5$1@smc.vnet.net>
On 28 =C9=C0=CE, 13:10, Alexander Erlich <alexander.erl... at gmail.com> wrote= : > Hi, > > thanks for the replies, ComplexExpand did the job! I don't know why I > hadn't been familiar with it - I am reading Kofler's book (he's a very > well known computer books author in Germany) which introduced > Simplify, FullSimplify, Together, Apart, Expand, etc., but I didn't > stumble over ComplexExpand yet. > > Question: What exactly does the line > > FullSimplify[ComplexExpand[#]] & /@ (Re[g] + I*Im[g]) > > do? I guess it uses ComplexExpand to bring the expression to the form > Re[g] + I*Im[g] and then fully simplifies (keeping this form), but > it's only a guess. What does it really do? > > Thanks a lot to you! > > Alexander FullSimplify simplifies expression obtained from ComplexExpand. The tags "& /@ (Re[g] + I*Im[g])" inform the mathematica kernel that result must be in form a+i*b.