MathGroup Archive 2009

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

Search the Archive

Re: Difficulties with Re


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


  • Prev by Date: Bug in Convolve, version 7
  • Next by Date: Re: Difficulties with Re
  • Previous by thread: Re: Difficulties with Re
  • Next by thread: Re: Difficulties with Re