Possible Duplicate:
Finding real roots of negative numbers (for example, $\sqrt\[3\]{-8}$)
I am trying to make Mathematica plot the cube roots of $27i$ and graph them, so that I can include them in my $\LaTeX$ed homework. How can I do this?
Possible Duplicate:
Finding real roots of negative numbers (for example, $\sqrt\[3\]{-8}$)
I am trying to make Mathematica plot the cube roots of $27i$ and graph them, so that I can include them in my $\LaTeX$ed homework. How can I do this?
From @belisarius
pts = ({Re@#, Im@#} & /@ (x /. Solve[x^3 == 27 I]))
Styling:
Show[ContourPlot[Abs[(x + I y)^3 - 27 I], {x, -4, 4}, {y, -4, 4}, Contours -> 15],
Graphics[{{Style[Text[#, #], 17] & /@ #}, {Opacity[.5], Orange,
Thickness[.01], Arrow[{{0, 0}, #}] & /@ #}, {Red,
PointSize[.02], Point@#}}, Axes -> True, Frame -> True,
PlotRangePadding -> 1, AspectRatio -> Automatic] &@pts]

Show[ContourPlot[Arg[(x + I y)^3 - 27 I], {x, -4, 4}, {y, -4, 4},
Contours -> 15, ColorFunction -> "Rainbow"],
Graphics[{{Style[Text[#, #], 17] & /@ #}, {Opacity[.5], Orange,
Thickness[.01], Arrow[{{0, 0}, #}] & /@ #}, {Red,
PointSize[.02], Point@#}}, Axes -> True, Frame -> True,
PlotRangePadding -> 1, AspectRatio -> Automatic] &@pts]

– Mauro Lacy
Dec 31 '18 at 13:58