Re: Difficulties with Re

*To*: mathgroup at smc.vnet.net*Subject*: [mg98337] Re: Difficulties with Re*From*: Pillsy <pillsbury at gmail.com>*Date*: Wed, 8 Apr 2009 02:45:18 -0400 (EDT)*References*: <grcgjq$pmv$1@smc.vnet.net>

On Apr 6, 5:04 am, Aaron Fude <aaronf... at gmail.com> wrote: > 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] Try ComplexExpand[] instead of Simplify[]. You shouldn't even need to use Assuming[], since ComplexExpand[] explicitly tells Mathematica to assume all unspecified variables are real. Cheers, Pillsy