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.