MathGroup Archive 2009

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

Search the Archive

Re: Difficulties with Re


ComplexExpand is your friend:

   ComplexExpand[Re[Exp[x + I y]]]
E^x*Cos[y]

   ComplexExpand[Re[Exp[(x + I y)^2]]]
E^(x^2 - y^2)*Cos[2*x*y]


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
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Does FindFit really use Norm[] when NormFunction -> Norm?
  • Next by Date: Re: Difficulties with Re
  • Previous by thread: Re: Difficulties with Re
  • Next by thread: Re: Difficulties with Re