Skip to main content
. 2025 Dec 22;28(1):12. doi: 10.3390/e28010012
Algorithm 1 The Lorenz time discretization algorithm
1. Input: vector field F(X), initial state X0R3, step h > 0, number of steps N, and X0 is the initial condition.
2. Initialization: XX0; X0 is written for k = 0, 1, …, N − 1;
3. Scheme selection: Euler (explicit, order 1), RK4 (explicit, order 4), and Midpoint/Crank–Nicolson (centroid, implicit, order 2);
4. Iterations (fixed point): Set Xk+1(0)Xk, 3a n = 0, 1, … n to convergence
         X(k+1)(n+1)=Xk+hF(Xk+X(k+1)n2),
5. Stop criterion:X(k+1)(n+1)X(k+1)n‖ ≤ tol, where tol is a numerical tolerance threshold that defines the allowable difference between two consecutive states or iterations in the model.
6. It sets the criterion for stopping the iteration process, i.e., when to assume that the system is “sufficiently” stabilized or has reached a stationary solution.
7. Final: Xk+1X(k+1)(n+1);
8. End of cycle. Returning {Xk}.
9. Output: discrete trajectory {Xk}k=0N, where Xk=ϕh(Xk) and ϕ е пoтoкa нa системaтa.