Closed
Description
The following code produced by DeepSeek fails:
def generate_mandelbrot(width, height, x_min, x_max, y_min, y_max, max_iter):
image = np.zeros((height, width))
for row in range(height):
for col in range(width):
x = x_min + (x_max - x_min) * col / width
y = y_min + (y_max - y_min) * row / height
c = complex(x, y)
m = mandelbrot(c, max_iter)
color = 1 - m / max_iter
image[row, col] = color
return image
Metadata
Metadata
Assignees
Labels
No labels