Plots of roots of polynomials with integer coefficients

This page contains various plots of roots of polynomials. A list of files is at the end.

The files who names start with rootsD-H contain plots of all roots of all irreducible polynomials of degree at most D whose coefficients are integers between -H and H (the "height").

Here is a png of roots6-5, which uses colour to indicate the density of roots. Click on the image for a larger version. Click here for an interactive zoomable very high-resolution version.

Sam Derbyshire produced a spectacular plot of all roots of all degree 24 polynomials whose coefficents are all in {-1,1}. Here is a close-up of a small portion:

The full image is in polynomial_roots.png which is a 90MB file that you probably want to download rather than view within your browser. Here is a zoomable version that I created, which has higher resolution than Sam's, and a colour scheme that changes as you zoom in.

There are also interactive versions of some other images:
Degree 25, coefficients in {-1,1}
Degree 23, coefficients in {-1,1}
Degree 17, coefficients in {-1,1}
Degree 6, coefficients in {-5, -4, ..., 5}
Degree 6, coefficients in {-4, -3, ..., 4}

Greg Egan also has an interactive applet.

The rest of the images use a different colour scheme, with points coloured based on their degree. The radius of the dots also varies with the degree. The files with -col and -col2 in their names use a different colour scheme. I like -col2. So roots6-4-col2 is one of my favourites.

If you are able to view the postscript files, the detail present in them is amazing, because each root is stored separately with high precision. Here's a screenshot of my postscript viewer, which shows an inset zoom near i. The outer picture shows i near the top and exp(i pi/3) towards the right. The origin is cut-off at the bottom. Click on the image for a larger version.

The .ps and .epsi files are the same data in different formats. I use gv to view the files on screen, and it needs to be given the .ps format. On the other hand, my printer driver can only handle the .epsi format. That's why I've provided both. If anyone can tell me how to make my .ps files more conforming, that would be great! Most of these files are compressed using bzip2, which is indicated by the .bz2 suffix. gv will uncompress these files as it reads them.

When previewing on screen, be sure to turn antialiasing off, e.g. with

gv -noantialias -orientation=landscape -media=letter roots6-4-col2.ps.bz2
Even with antialiasing off, the larger ones are slow to view and use hundreds of megabytes of ram. It takes gv about 1 minute to display roots6-4 on my system, but you can see the points fill in during this time which is interesting. Try roots5-4 first.

The roots6-4 files plot 13,553,584 roots. And yet (uncompressed) they are about 24M in size. How do I store the coordinates, colour and radius of each root in under two bytes? The main clever trick is to use the 8 fold symmetry of the plots. The reflection symmetry in the x and y axes is clear, but can you see the third symmetry?

See the readme file for some further explanation of the mathematics, and polynomial-roots.tar for the code I used.

And see https://math.ucr.edu/home/baez/roots/ for more about polynomial roots, and links to some references. The slides from a talk John gave contain proofs of various facts about the images. Scientific American also wrote an article about this topic.

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]roots6-5.ps.bz22006-02-13 18:00 24M 
[IMG]roots6-5.png2010-01-27 18:41 4.0M 
[   ]roots6-5.epsi.bz22006-02-13 21:58 24M 
[IMG]roots6-5-thumb.png2010-01-27 18:43 36K 
[IMG]roots6-5-small.png2010-01-27 18:42 365K 
[IMG]roots6-5-med.png2010-01-27 18:42 1.1M 
[   ]roots6-4.ps.bz22006-02-13 14:51 5.6M 
[   ]roots6-4.epsi.bz22006-02-13 21:47 5.7M 
[IMG]roots6-4-med.png2010-01-27 18:45 749K 
[IMG]roots6-4-col2.small.jpg2006-06-16 15:36 9.8K 
[   ]roots6-4-col2.ps.bz22006-02-14 10:47 5.6M 
[IMG]roots6-4-col2.jpg2006-06-16 13:06 304K 
[   ]roots6-4-col2.epsi.bz22006-02-14 10:49 5.6M 
[IMG]roots6-4-col2.big.jpg2006-06-16 15:27 402K 
[IMG]roots6-4-col2-closeup.png2009-12-11 12:40 711K 
[   ]roots6-4-col.ps.bz22006-02-14 10:02 5.6M 
[   ]roots6-4-col.epsi.bz22006-02-14 10:04 5.7M 
[   ]roots6-3.ps.bz22006-02-13 21:39 941K 
[   ]roots6-3.epsi2006-02-13 21:44 4.5M 
[   ]roots6-3-col2.ps.bz22006-02-14 10:47 942K 
[   ]roots6-3-col2.epsi2006-02-14 10:46 4.6M 
[   ]roots6-3-col.ps.bz22006-02-14 09:51 941K 
[   ]roots6-3-col.epsi2006-02-14 09:53 4.5M 
[   ]roots5-5.ps.bz22006-02-13 21:39 1.9M 
[   ]roots5-5.epsi2006-02-13 21:44 8.5M 
[   ]roots5-4.ps.bz22006-02-13 21:39 535K 
[   ]roots5-4.epsi2006-02-13 21:43 3.0M 
[   ]roots4-4.ps.bz22006-02-13 21:33 51K 
[   ]roots4-4.epsi2006-02-13 21:43 1.1M 
[   ]roots3-5.ps.bz22006-02-13 21:39 12K 
[   ]roots3-5.epsi2006-02-13 21:43 1.0M 
[   ]readme2012-12-05 09:25 6.5K 
[IMG]polynomialroots_closeup_small.jpg2009-12-11 12:11 32K 
[IMG]polynomial_roots.png2009-11-11 09:45 90M 
[   ]polynomial-roots.tar2007-05-23 10:32 70K 
[DIR]deepzoom/2023-03-17 16:00 -  
[TXT]HEADER.html2023-03-17 21:09 4.5K