MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Difficulties with Re

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98336] Re: Difficulties with Re
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Wed, 8 Apr 2009 02:45:07 -0400 (EDT)
  • References: <grcgjq$pmv$1@smc.vnet.net>

Aaron Fude 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
>

Your second one will not be changed, because Mathematica considers
Re[Exp(x+I y)^2] to be the simplest form. You might insert an ExpandAll
to get the desired result of Exp[x^2-y^2]Cos[2 x y]


-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Re: overlay of multiple plots Show command does not work
  • Next by Date: Re: overlay of multiple plots Show command does not work
  • Previous by thread: Re: Difficulties with Re
  • Next by thread: Re: Difficulties with Re