4
$\begingroup$

Given three complex numbers:

$a=3+2i=(3,2) $ in $(Re,Im)$ plane.

$b=-1-3i=(-1,-3)$ in $(Re,Im)$ plane.

$c=a+b=2-i=(2,-1)$ in $(Re,Im)$ plane.

Now, I want to plot these three complex numbers like this enter image description here Every complex number needs to be plotted like an arrow from $(0,0)$ to its respective coordinates. How can I achieve this ?

$\endgroup$
2
  • $\begingroup$ Possible earlier duplicate: (15637), but no arrow, if arrows pose a significantly distinctive problem. Also related: (97245) $\endgroup$
    – Michael E2
    Commented Dec 23, 2017 at 5:06
  • $\begingroup$ Also related: (131125). $\endgroup$
    – corey979
    Commented Dec 23, 2017 at 21:55

1 Answer 1

7
$\begingroup$
{a, b, c} = {3 + 2 I, -1 - 3 I, 2 - I};
reim = ReIm @ {a, b, c};
data = {{0, 0}, #} & /@ reim;
labels = {"a", "b", "c"};
Show[ListLinePlot[data, BaseStyle -> Arrowheads[.05],  AspectRatio -> 1, 
    PlotRangePadding -> 1], 
  ListPlot[Callout[#, #2] & @@@ Transpose@{reim, labels}, PlotStyle -> None]] /. 
  Line -> Arrow

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.