Iterate - Diverge logic for Mandelbrot set
✓ Published0🌍 Public
Aadiamaan92
Last edited Sep 26, 2021
Created on Sep 26, 2021
This visualization generates a 500-by-500 Mandelbrot set by iterating the complex function z = z² + c for up to 100 iterations. It shows the divergence pattern of points on the complex plane between x from -2 to 1 and y from -1.5 to 1.5, using NumPy arrays and the `np.complex` constructor to store iteration counts. The nested loops directly compute each pixel’s escape time, with the `np.zeroes` array initializing the output grid before filling it with the final iteration values.
AI-generated description