Originally written in French. Translated by AI — the meaning has been preserved, not the prose.
Main idea
To compute the Mandelbrot set without real numbers, each coordinate is multiplied by a scale $S = 2048 = 2^{11}$ and stored in a 32-bit integer (LongInt in Turbo Pascal). The formulas adapt: $X' = (X^2 - Y^2)/S + A$ and $Y' = XY/(S/2) + B$, which gives back $x^2 - y^2$ and $2xy$ at scale $S$. The escape threshold $|z|^2 < 4$ becomes $X^2 + Y^2 < 4S^2 = 16\,777\,216$.
Choosing a power of two is not neutral: division by $2^{11}$ can be written as a shift (shr 11), faster than a division, and the factor 2 in $2xy$ is folded into the constant (div 1024).
Why it matters
On a PC without a coprocessor, where real numbers are emulated in software, this change of unit makes a fractal computable at an acceptable speed. It shows that a "real-valued" computation can often be carried out in integers through a simple change of scale.
Nuances and limits
Precision is limited by the scale: a deep zoom requires a larger scale, hence wider integers, and exposes you to overflows.
Open questions
- Up to what zoom factor does a $2^{11}$ scale on 32 bits stay visually faithful to a floating-point computation?