I have here an implementation of Newton's method that returns a list of 3-vectors. The first and second elements are the real and imaginary parts of the initial conditions and the third element is the results of Newton's method:
Newton[z_Complex] := z - (z^3 + 1)/(3 z^2);
Table[{n, m , NestWhile[Newton[#] &, n + m I, Abs[#] <= 20 &, All, 50]}, {n, -2, 2, .1}, {m, -2, 2, .1}]
What would be an efficient way of plotting the data and assigning a color depending on the 3rd component of each 3-vector? Could we build the specifications directly into the function ListPlot?
One implementation would be to partition the output into 3 lists of 2-tuples depending on the 3rd component and then use ListPlot on those 3 lists and manually define the color. There must be a better way.
Zeta[]
, so trying to make a fractal out of that will likely be slow. $\endgroup$