

@autojit
def mandel(x, y, max_iters):
    '\n    Given the real and imaginary parts of a complex number,\n    determine if it is a candidate for membership in the Mandelbrot\n    set given a fixed number of iterations.\n    '
    i = 0
    c = complex(x, y)
    z = 0j
    for i in range(max_iters):
        z = ((z * z) + c)
        if (((z.real * z.real) + (z.imag * z.imag)) >= 4):
            return i
    return 255

dataset/ETHPy150Open numba/numba/examples/mandel/mandel_autojit.py mandel/original