Skip to main content
100%

Sample complex numbers that are not in the Mandelbrot set

✓ Published0🌍 Public
Aadiamaan92
Last edited Sep 26, 2021
Created on Sep 26, 2021

This example visualizes complex numbers that are not in the Mandelbrot set, showing the distribution of points that escape the set’s boundary. It generates random samples in the complex plane, first filtering out points inside the main cardioid and period-2 bulb using algebraic tests, then iterating the remaining points up to a maximum number of iterations. Points whose magnitude exceeds 2 are collected as non-Mandelbrot samples. The code uses NumPy’s array operations and masking to perform the filtering and iteration efficiently, returning a dense array of escaped complex coordinates.

AI-generated description

Similar vizzes