Lesson 2 of 15
Lorenz Attractor
Lorenz Attractor
In 1963, Edward Lorenz discovered that a simplified model of atmospheric convection produces strikingly complex, non-repeating trajectories — the first famous example of a strange attractor.
The Lorenz System
Classic parameters: , ,
The state vector evolves continuously. With these parameters the system is chaotic, with a Lyapunov exponent of approximately .
Numerical Integration: RK4
We integrate using the fourth-order Runge-Kutta (RK4) method with time step :
Key Properties
- Sensitivity to initial conditions: two trajectories starting apart diverge exponentially.
- Strange attractor: trajectories are bounded but never repeat — they lie on a fractal set with dimension .
- Butterfly shape: the attractor has two lobes around the two unstable fixed points at .
Your Task
Implement:
lorenz_deriv(state, sigma=10, rho=28, beta=8/3)— returns as a tuplelorenz_rk4_step(state, sigma=10, rho=28, beta=8/3, dt=0.01)— one RK4 step, returns newlorenz_trajectory(x0, y0, z0, n_steps=1000, dt=0.01)— returns list of tuples (including initial state)
Python runtime loading...
Loading...
Click "Run" to execute your code.