starting to do some shader with Newton fractal I can't understand examples. If I have $$z^{2}+c$$ fractal, it could be presented as a $$(a +b*i)^{2}+c$$ $$a^{2}+2*a*b*i - b^{2}$$ and I will get point with coordinates $$vec2(a^{2} - b^{2}, 2.0*a*b)$$
Now I want to go with $$\frac{2*z^{3}+1}{3*z^{2}}$$ In provided examples is $$float \ \ magnitude = dot(z, z);$$ $$z= \frac{\frac{(2.0 * z + vec2(z.x * z.x - z.y * z.y, -2.0 * z.x * z.y)}{(magnitude * magnitude))}}{3.0}$$ where dot returns the dot product of two vectors, x and y. i.e., x[0]⋅y[0]+x[1]⋅y[1]+...
How to get this result? And how to extrapolate it for example to $$z = z^{4}-1$$ for Newton fractal $$\frac{3*z^{4}+1}{4*z^{3}}$$
Thanks a lot.