MathGroup Archive 2002

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

Search the Archive

Re: Absolute Value of Complex Numbers


In article <afp0oh$h08$1 at smc.vnet.net>, "Kyle Davis"
<kyledavis at nowhere.com> wrote:

> Abs[2 Exp[3 * i]] answer = 2
> 
> Abs[2 Exp[k * i]] answer = 2 Exp[-Im[k]]
> 
> Isn't the second answer supposed to be the same with the first one,
> regardless with the value of k?

Only if k is real.

> How do I make the second calculation give me the right answer?

In[1]:= ComplexExpand[Abs[2 Exp[k * I]]]

Out[1]= 2

ComplexExpand[] performs the expansion assuming all variables represent
real numbers.

-- 
| John Doty		"You can't confuse me, that's my job."
| Home: jpd at w-d.org
| Work: jpd at space.mit.edu


  • Prev by Date: I NEED HELP WITH THIS
  • Next by Date: Re: Absolute Value of Complex Numbers
  • Previous by thread: RE: Absolute Value of Complex Numbers
  • Next by thread: Re: Absolute Value of Complex Numbers