For the function
$F(z;Q,a) = 3z - \frac{z}{|z|^3}\left(1 + \frac{3a}{2|z|^2}\right) - Q$
the Newton iteration formula is
$z_{n+1} = z_n - \frac{F(z_n;Q,a)}{F_z(z_n,a)} = \frac{2Qz_n^4|z_n|+6z_n^3+15az_n}{2(3z_n^4|z_n|+2z_n^2+6a)}$
For $a = 0.5$ and $Q = 2$ the basins of attraction are the following
where the black dots indicate the position of the six attractors.
F = 3*z - z/((Norm[z])^3)*(1 + (3*a)/(2*(Norm[z])^2)) - Q;
a = 0.5; Q = 2;
zn1 = (2*Q*z^4*Norm[z] + 6*z^3 + 15 a*z)/(2*(3*z^4*Norm[z] + 2*z^2 + 6*a));
I used the code suggested by @eldo here: code
newton[z_] := z - f[z]/f'[z]
plot := ListDensityPlot[Arg@FixedPoint[newton, #, 50] & /@
Table[i + j I, {j, -2., 2., 0.1}, {i, -2., 2., 0.1}],
ColorFunction -> "Rainbow"]
f[z_] := 3*z - z/((Norm[z])^3)*(1 + (3*a)/(2*(Norm[z])^2)) - Q;
a = 0.5; Q = 2; plot
but the program seems not not to respond. I waited for more than ten minutes but no output was arrived. I think the Norm[]
creates some problems but I am not so sure about it.
Am I doing something wrong? Can anyone please help me to produce this plot with Mathematica?
Many thanks in advance!
f'[z]
. NeitherNorm
norAbs
are differentiable. Maybe code the formula explicitly. $\endgroup$