Height map view of the Newton fractal for p(z) = z^3 - 1. You've probably seen something like this before, but I had yet to code it myself. Writing code is fun, and so I'll rather not delegate it to other people's software, let alone this weird Al guy. It's fun even if someone else has already done it, because you can do it your own way. Coding also helps me stay sane, if only to check that my brain hasn't melted away completely.
One thing I take particular pride in, is doing my own derivatives for the surface normals in lighting. I didn't go to all these fancy schools for nothing, did I? Sure, you could start with the 2D picture and then compute numerical gradients for the height map; it's just the thing if you start with a random photo, but if you start with math, you can stick to the math all the way.
With the iterated scheme, this means accumulating the Jacobian factor on each iteration. There's a little trick to doing this with a complex number instead of a matrix, but they're just different representations of the same thing.
The height represents iterations (up to 25) with higher levels converging faster. The iterate steps are smoothed with a fraction representing the remaining distance to the root; it's not quite perfect as the stepped structure remains quite obvious, but it's the best I've come up with so far.
#newtonfractal #newtonsmethod #fractal #fractalart #relief #heightmap #raymarching #pythoncode #opengl #algorithmicart #algorist #mathart #laskutaide #ittaide #kuavataide #iterati