Skip to content
CHAOS HOUSE

Every chaos generator should have a house!

The story of Chaos House

In my dissertation, I tried to classify about 84 analog chaos generators. The dynamics of each can be described by a system of ordinary differential equations. I already knew there were many more. I included the generators whose descriptions I could find at the time.

To see how a generator behaved as its parameters changed, I linked the computers in several teaching labs and divided the parameter combinations among their processor cores. Even with all those cores working together, a map for one generator took weeks.

I wanted an atlas with room for the generators I had yet to find. Today, GPUs and servers make those maps much faster to compute. In Chaos House you can pick a point on a map, see the corresponding trajectory, then change a coefficient and follow what happens to the motion.

I want this atlas to include every known chaos generator and to bring together the people who study them. Perhaps you know a system that is missing here, or have found an interesting regime in a familiar one. Share the equations and parameters so someone else can try your experiment.

Submission instructions

Bouali

Comments

Search and filters

Code
Appearance

Connecting to the archive…

Orbit parameters and sources

ẋ = x·(4−y)+a·z
ẏ = −y·(1−x²)
ż = −x·(1.5−s·z)−0.05·z
dx/dt = x·(4−y)+a·z
dy/dt = −y·(1−x²)
dz/dt = −x·(1.5−s·z)−0.05·z

    Spectrum and distribution settings
    Code and downloads

    bouali / euler.c

    First-order explicit Euler. Each equation is evaluated once per step. The starting step is one tenth of the scene step; reduce it again to check convergence.

    // Bouali | Chaos House 2026.11.25-readable.6
    // Source: https://doi.org/10.1007/s11071-012-0625-6
    // Raw coordinates. See README.txt and the included source licenses.
    // First-order explicit Euler. Each equation is evaluated once per step. The starting step is one tenth of the scene step; reduce it again to check convergence.
    #include <math.h>
    #include <stdio.h>
    #include <stdlib.h>
    int main(void)
    {
    
        // 1. Parameters and initial conditions.
        double a = 0.3;
        double s = 1;
        double x_initial = 1;
        double y_initial = 0.1;
        double z_initial = 0.1;
    
        // 2. Time settings. Time units belong to the mathematical model.
        double dt = 0.0006000000000000001;
        double duration = 120.0;
        if (!(dt > 0 && duration >= dt && duration / dt <= 600000)) { fputs("Require a positive step and between 1 and 600000 steps. Reduce duration for a smaller dt.\n", stderr); return 1; }
        int steps = (int)round(duration / dt);
    
        // 3. Allocate arrays and keep every computed step, including the initial state.
        double *t = calloc((size_t)steps + 1, sizeof(double));
        if (!t) { fputs("Not enough memory.\n", stderr); return 1; }
        double *x = calloc((size_t)steps + 1, sizeof(double));
        if (!x) { fputs("Not enough memory.\n", stderr); return 1; }
        x[0] = x_initial;
        double *y = calloc((size_t)steps + 1, sizeof(double));
        if (!y) { fputs("Not enough memory.\n", stderr); return 1; }
        y[0] = y_initial;
        double *z = calloc((size_t)steps + 1, sizeof(double));
        if (!z) { fputs("Not enough memory.\n", stderr); return 1; }
        z[0] = z_initial;
        int count = 1;
        for (int step_index = 0; step_index < steps; step_index++) {
            x[step_index + 1] = x[step_index] + dt * (x[step_index] * (4.0 - y[step_index]) + a * z[step_index]);
            y[step_index + 1] = y[step_index] + dt * (-y[step_index] * (1.0 - x[step_index] * x[step_index]));
            z[step_index + 1] = z[step_index] + dt * (-x[step_index] * (1.5 - s * z[step_index]) - 0.05 * z[step_index]);
            if (!(isfinite(x[step_index + 1]) && fabs(x[step_index + 1]) < 1e8 && isfinite(y[step_index + 1]) && fabs(y[step_index + 1]) < 1e8 && isfinite(z[step_index + 1]) && fabs(z[step_index + 1]) < 1e8)) {
                fputs("Stopped at a non-finite or very large state. Try a smaller step or another preset. The plotted prefix is not a confirmed bounded attractor.\n", stderr);
                break;
            }
            t[step_index + 1] = (step_index + 1) * dt;
            count = count + 1;
        }
    
        // 4. Plot the trajectory. Green is the start; red is the end.
        FILE *file = fopen("bouali-trajectory.dat", "w");
        if (!file) { perror("trajectory file"); return 1; }
        for (int row = 0; row < count; row++) {
            fprintf(file, "%.17g %.17g %.17g\n", x[row], y[row], z[row]);
        }
        int write_failed = ferror(file);
        if (fclose(file) != 0) write_failed = 1;
        if (write_failed) return 1;
        // Requires gnuplot on PATH. Set GNUTERM=svg for a headless SVG output.
        int plot_status = system("gnuplot -persist -e 'set title \"Bouali / Euler\"; set xlabel \"x\"; set ylabel \"y\"; set zlabel \"z\"; set grid; set view equal xyz; stats \"bouali-trajectory.dat\" using 1 nooutput; last=STATS_records-1; splot \"bouali-trajectory.dat\" using 1:2:3 with lines title \"Trajectory\", \"\" every ::0::0 using 1:2:3 with points pt 7 lc rgb \"green\" title \"Start\", \"\" every ::last::last using 1:2:3 with points pt 7 lc rgb \"red\" title \"End\"'");
        free(t);
        free(x);
        free(y);
        free(z);
        return plot_status == 0 ? 0 : 1;
    }
    

    Beyond the browser

    Choose a programming language and download the files you need from the downloads page. Choose a programming language

    Does your chaos have a name?

    We want to bring every chaos generator into one open catalogue and connect the people who study chaos and nonlinear dynamics. Developing your own system? Send its equations, parameters, initial state, recommended method and step, a reference and the code licence. After review we will add it with your name and link.

    Submission instructions · Write to the author

    Comments

    Bouali

    Generator ranking

    Collections and index · 420 models