I would like to reproduce the plot shown in fig(b) from the link.
How can I obtain yellow, red, green and blue using the command? Let's say there are 4 roots in total. In this case roots will be {2, 1 + i,1 - i, -3 }. I'm trying plot something like in figure (b) of the above link by using the codes in a similar post.
List @@@ Table[ColorData[45, k], {k, 1, Length[roots]}];
Thanks, RM
roots
is left undefined $\endgroup$roots
will be finite distinct numbers (for instance, four numbers). $\endgroup$roots = {{1, 2, 3, 4, 5, 6}}
thenLength[roots]
is6
. On the other hand, ifroots = {{1, 2, 3, 4, 5, 6}, {1, 2, 3, 4, 5, 6}}
thenLength[roots]
is2
. On top of that, different numbers will result in different plots. $\endgroup$