4
$\begingroup$

This question already has an answer here:

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$

marked as duplicate by Artes, Coolwater, Henrik Schumacher, LCarvalho, Edmund Dec 23 '17 at 11:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Possible earlier duplicate: (15637), but no arrow, if arrows pose a significantly distinctive problem. Also related: (97245) $\endgroup$ – Michael E2 Dec 23 '17 at 5:06
  • $\begingroup$ Also related: (131125). $\endgroup$ – corey979 Dec 23 '17 at 21:55
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.