Re: Difficulties with Re
- To: mathgroup at smc.vnet.net
- Subject: [mg98325] Re: [mg98349] Difficulties with Re
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Wed, 8 Apr 2009 02:43:08 -0400 (EDT)
- Reply-to: hanlonr at cox.net
Assuming[Element[{x, y}, Reals], Re[Exp[x + I y]] // Simplify]
E^x*Cos[y]
Assuming[Element[{x, y}, Reals],
Re[ComplexExpand[Exp[(x + I y)^2]]] // Simplify]
E^(x^2 - y^2)*Cos[2*x*y]
Bob Hanlon
---- Aaron Fude <aaronfude at gmail.com> wrote:
=============
Hi,
Of the following two expressions, the first "works", while the second
doesn't. How does one make it work?
Assuming[x > 0 && y > 0, Re[Exp[x + I y]] // Simplify]
Assuming[x > 0 && y > 0, Re[Exp[(x + I y)^2]] // Simplify]
Many thanks in advance,
Aaron