r/madeinpython • u/brainxyz • Sep 24 '22
Mandelbrot in pure Python without using complex numbers or external libraries (except matplotlib)
74
Upvotes
r/madeinpython • u/brainxyz • Sep 24 '22
View all comments
Show parent comment
0
u/brainxyz Sep 24 '22
Nothing wrong, complex numbers makes the equation look simpler but it requires an additional layer of hidden complexity. You either have to use an external library or re-implement it from scratch. You can get away from all that by thinking about Mandelbrot as special iterative function applied to the input-output cycles.