I have been doing some stuff with differential equations. They provide some unexpected results and show random behavior. I made a little visualization with the html canvas of a Lorenz (not Lorentz) systemhttps://en.wikipedia.org/wiki/Lorenz_system
<canvas>
<script>
c = document.getElementsByTagName("canvas")[0];
(ctx = c.getContext("2d")), (c.width = 500), (c.height = 500);
(x = y = z = 1), (a = 10), (b = 28), (c = 8 / 3), (dt = 0.005);
setInterval(() => {
[x, y, z] = [
x + a * (y - x) * dt,
y + (x * (b - z) - y) * dt,
z + (x * y - c * z) * dt
];
ctx.fillRect(200 + 5 * x, 200 + 5 * y, 1, 1);
});
</script>
You can see it live here:https://05dd8515-5617-4479-92db-df9de14327bc.htmlpasta.com/