Re: Difficulties with Re
- To: mathgroup at smc.vnet.net
- Subject: [mg98361] Re: [mg98349] Difficulties with Re
- From: Adriano Pascoletti <adriano.pascoletti at dimi.uniud.it>
- Date: Wed, 8 Apr 2009 02:49:38 -0400 (EDT)
- References: <200904060905.FAA26352@smc.vnet.net>
Positivity is not essential in your problem. ComplexExpand does what you want: In[3]:= ComplexExpand[Re[Exp[(x + I*y)^2]]] Out[3]= E^(x^2 - y^2)*Cos[2*x*y] In[4]:= ComplexExpand[Re[Exp[x + I*y]]] Out[4]= E^x*Cos[y] Adriano Pascoletti 2009/4/6 Aaron Fude <aaronfude at gmail.com> > 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 > >
- References:
- Difficulties with Re
- From: Aaron Fude <aaronfude@gmail.com>
- Difficulties with Re