MathGroup Archive 2003

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

Search the Archive

Abs help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41959] Abs help
  • From: rex_chaos at 21cn.com (Rex_chaos)
  • Date: Wed, 11 Jun 2003 13:17:49 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

hi all,
  Here is a expr 
    y=Exp[I*x]+1;
  where x is REAL. I would like to take the absolute value of y

  However, it gives 

  In[1]:=Abs[ExpToTrig[y]]^2
  Out[1]=Abs[1 + Cos[2 x] + \[ImaginaryI] Sin[2 x]]^2

  How can I get the result Sin[2 x]^2 + (1+Cos[2 x])^2 ?

  How to tell mathematica x is REAL?

Thanks.


  • Prev by Date: Averaging
  • Next by Date: Re: Gamma distribution
  • Previous by thread: RE: Re: Averaging
  • Next by thread: Re: Abs help