4

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 ?

Noodle
  • 43
  • 3

1 Answers1

7
{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

kglr
  • 394,356
  • 18
  • 477
  • 896