def isInside(c): zN = Complex() for i in range(MAX): if zN.radius() > OUT_OF_MANDELBROT: return i zN = f(c, zN) return -1