X

Xaos

This is a journey into the Mandelbrot set using a tool in Linux (and MS-DOS) called Xaos. The Mandelbrot set is a place anyone in the universe can explore. Aliens in another galaxy can visit the same exotic places in the Mandelbrot set that we do. The red arrow indicates where I’m going to zoom in.

To understand what the Mandelbrot Set is, I have to explain complex numbers. That name doesn’t mean the numbers are complicated, it just means they are numbers which have two parts, and when the two parts are multiplied, they have to be handled separately just like a binomial. For instance, 2 + 3i is a complex number. If I multiply it by itself (square it), I end up with 4+ 6i + 6i + 9i^2. Now to continue I have to explain what i is.

By simple fiat i is defined as the square root of -1. The normal operations of algebra don’t give us the square roots of negative numbers, because the squares of negative numbers are always positive. But in Algebra Deluxe we simply define i as the square root of -1 so we don’t end up quadratic equations with only one solution, or even none.  With i we can take square roots with impugnity. In an unfortunate choice of math jargon i is called an imaginary number but that doesn’t mean it’s pure fantasy. For instance, i^i = e^(-π/2)   (a real number roughly 0.20788)

So now that we set i to the square root of -1, it follows that i^2 is simply -1. In my squared complex number above, the solution becomes 4 + 12i – 9, or -5 + 12i. So what good are complex numbers? They extend the one-dimensional number line of real numbers to the two-dimensional plane. The real part of my complex numbers (+2 in the first case, -5 in the second case) represent the horizontal position of a point. The “imaginary” part of my complex number (+3 in the first case, +12 in the second case) represent the vertical position of a point.

So here’s what Xaos does to generate the Mandelbrot set. Each point on the screen is a complex number which is multiplied by itself repeatedly. Each solution is a new point. If the solutions remain on the screen after, say, 100 iterations, that point is assigned a dark color. If the solutions fly off the screen, they are assigned lighter colors based on how rapidly they depart. And the result is a wonderful fractal universe that you can dive into real time with your mouse, as it smoothly zooms in (or out if you hold down the right-clicker instead). This mathematical universe is like Mount Everest. We didn’t make it. God didn’t even make it. It’s just “there”, and it has always been there, like the distribution of primes. You can go down and down, forever and ever, and the funny thing is, sometimes you find little baby copies of the whole Mandelbrot set down there, but they are never exact copies, only variations of the theme. It’s really a mind blower.

Xmas

Xmas

#!/usr/bin/python3
import datetime
today=datetime.date.today()
xmas=datetime.date(2023,12,25)
diff=xmas-today
d=diff.days
print ("Only",d,"shopping days until Christmas.")