Beauty of Roots
This script generates a fractal from polynomial roots . First time when i saw this image i wanted to print it on canvas ant put it in our office , but printing an image that i found on the internet would not be so much fun right ? so i wrote my own implementation , it looks really cool on our wall .
Example: This is a plot of all roots with coefficents of [1 or -1] and degree of 24 .
How to use :
- roots.py - Generates NumPy array file with all available roots .
- plot.py - Creates PNG image by creating a hit map from roots file .
Generate all roots of polynomials with degree of 14 :
python roots.py 14
This will create pointmap.npy file in your working directory . You should use it to produce an image .
python plot.py pointmap.npy my_image.png 1024
I encourage you to generate a big resolution image of the fractal, you should find a lot of interesting patters inside .