Search
Strange Attractors
Last updated
May 11, 2023
Edit Source
//pointwrangle “starting_conditions” (used the values in each comment)
1
2
3
4
| @a = chf("sigma"); // 10
@b = chf("rho"); // 28
@c = chf("beta"); // 8/3
@dt = ch("dt"); // 0.002
|
The solver is just a point wrangle that moves the starting points along based on the formula and starting conditions.
// the solver
//pointwrangle “move_points”
1
2
3
4
5
6
7
8
9
10
11
| float x = @P.x;
float y = @P.y;
float z = @P.z;
float dx = (@a * ( y - x )) * @dt;
float dy = (x * ( @b - z ) - y ) * @dt;
float dz = (x * y - @c * z ) * @dt;
@P.x += dx;
@P.y += dy;
@P.z += dz;
|
sources / further reading: