fun.sys / free time

EVERY GUESS FINDS A HOME

Newton's method: stand on a guess, slide down the tangent line to where it crosses zero, repeat. Every starting point ends up at one root of the polynomial — this colors each pixel by which one. Drag the roots (dots). Tap anywhere else to follow one guess home.
Tap the map to start a guess.

Look at the border between any two colors. It is never a clean line: wherever two regions meet, every other color shows up there too, at every zoom — three regions, one shared boundary. With three roots the picture is the classic Newton fractal; push two roots together and the fight between them gets narrow and strange. Guesses near a spot where the slope is flat shoot far away first, which is why dark "slow" bands thread through the bright regions. The map shows the square from −2 to 2 on both axes (real across, imaginary up).