MathGroup Archive 2006

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

Search the Archive

Re: Trigonometric form of complex numbers


On 3 Feb 2006, at 00:09, ivan.svaljek at gmail.com wrote:

> Is there a way to force mathematica to output complex numbers in
> trigonometric form (I guess you call it Phasor).
> Can it return all 3 roots of a complex number in such a form ?
>
> Thanks.

Phasor? Do you mean:


PolarForm[u_] := Module[{z}, Factor[ComplexExpand[z, z,
     TargetFunctions -> {Arg, Abs}] /. {Cos[v_] :> Cos[
             TraditionalForm[v]], Sin[v_] :> Sin[TraditionalForm 
[v]]} /. z -> u]]


ls = x /. Solve[x^3 == I, x];


PolarForm /@ ls

Andrzej Kozlowski


  • Prev by Date: 2d PDE boundary condition and NDSolve
  • Next by Date: Re: how to visualize 3+D normal density contour?
  • Previous by thread: Trigonometric form of complex numbers
  • Next by thread: Re: Trigonometric form of complex numbers