Klein bottle
* Slight generalization *
While browsing the fractal forums, I came across this formula, which the author called the "Klein bottle".
I don't know whether the function described below actually has anything to do with the Klein bottle. However, I find it fascinating.
Formula: \(z_{n+1} = f(z_n^2+c)\)
where f(z) is defined as (pseudocode)
f(z) {
dist = abs(re(z)) - 1.2
if (re(z) > 1.2) {
re(z) = - 1.2 + dist
im(z) = - im(z)
} else if (re(z) < -1.2) {
re(z) = 1.2 - dist
im(z) = - im(z)
}
dist = abs(im(z)) - 1.2
if (im(z) > 1.2) {
re(z) = - re(z)
im(z) = -1.2 + dist
} else if (im(z) < -1.2) {
re(z) = - re(z)
im(z) = 1.2 - dist
}
return z
}
#fractal #fractalart #mathart #mandelbrot #distanceestimation #art