[Solved] Drunk Mandelbrot implementation [closed]

[ad_1]

Your calculation of the complex modulus is incorrect.

float Complex::getAbsoluteValue() const {
    return sqrt(real * real + imaginary + imaginary);
}

You’ve since removed this section of your post, but it should say

float Complex::getAbsoluteValue() const {
    return sqrt(real * real + imaginary * imaginary);
}

[ad_2]

solved Drunk Mandelbrot implementation [closed]