I'm trying to understand complex numbers better and making some fractals but I can't seem to understand how the equation for the burning ship works. z = |z|² + c My problem is: how do you use the absolute value as a complex number? I know that the absolute value of a complex number is equal to the distance from the origin (for z = (a + bi), |z| = sqrt(a²+b²)), but the result is a real number. How do I interpret it as a complex number to finish the equation?
I tried searching online a lot but it just gave me the same kind of result, results like "How the absolute value of a complex number works" and other things like that.
Thanks for the help! (Sorry if my question looks or seems kinda dumb, I barely know anything about complex numbers...)
The Burning Ship formula as $z \to |z|^2 + c$ is an abuse of notation. It really means $x + i y \to (|x| + i |y|)^2 + (a + i b)$. When expanded using usual algebra (including $i^2 = -1$), you get $x \to x^2 - y^2 + a$ and $y \to 2 |x| |y| + b$. If implemented in computer code, then make sure not to overwrite variables needed for the other equation, for example by using additional temporary variables: