Click the flag to render the fractal. Use 1 and 2 to select two different polynomials. See inside if you want to try other ones. It should be pretty easy to add new ones. Share any good ones you find in the comments below. This uses newton's method for approximating roots in a complex plane. On the borders between regions, it becomes a fractal mess. The colors are based on where the approximated root is. Usually, this fractal is colored by which root it gets nearest to, but I don't have access to the roots, unless if I do some weird clumping thing on the approximations, or define the polynomials in terms of their roots. e.g. (x-1)(x+5)(x-3i)(x+3i)
Inspiration and main explanation: https://youtu.be/-RdOwhmqP5s Here is the Wikipedia article: https://en.wikipedia.org/wiki/Newton_fractal Finding the derivative of a polynomial: https://en.wikipedia.org/wiki/Polynomial#Calculus