MathGroup Archive 2006

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

Search the Archive

Re: Trigonometric form of complex numbers


ivan.svaljek at gmail.com schrieb:
> I'm looking for a solution that would produce something like this:
> r (cos f + i sin f).
> 
> And would return n roots of a complex number in such form.
> 
> Mathematica itself does nothing to return roots of complex numbers. Am
> I wrong ?
> 
Sth. like
In[1]:= ComplexExpand[(-1)^(1/n)]
Out[1]= Cos[Pi/n] + I*Sin[Pi/n]

or

In[2]:= NSolve[x^5 == 1, x]
Out[2]= {{x -> -0.8090169943749475 - 0.5877852522924731*I},
   {x -> -0.8090169943749475 + 0.5877852522924731*I},
   {x -> 0.30901699437494745 - 0.9510565162951536*I},
   {x -> 0.30901699437494745 + 0.9510565162951536*I}, {x -> 1.}}

??


  • Prev by Date: Re: Problem plotting high-order Laguerre polynomials
  • Next by Date: Re: MathGL3d and Mathematica 5.3
  • Previous by thread: Re: Re: Trigonometric form of complex numbers
  • Next by thread: t-test question