fixed double error message reporting in trajectory plot
[iDMC.git] / models / Primer / quasi.lua
blob877b21c3b6b257c8d232e648612ef5067d6f37cb
1 --% ft| TRAJECTORY_T0_V0_A1_O1 sn| Convergence~to~a~quasiperiodic~torus n| #0 d| 0.1 n| #1 d| 0.1 n| #2 d| 0.1 n| #3 d| 2.005 n| #4 d| 3 n| #5 d| 0.2 n| #6 d| 0.2 n| #7 d| 0.02 n| #8 d| 0 n| #9 d| 30000 n| #10 d| 30000 n| #11 d| x n| #12 d| z
2 --% ft| BIFURCATION_1 sn| Quasiperiodic~dynamics n| #0 d| 0.1 n| #1 d| 0.1 n| #2 d| 0.1 n| #3 d| 3 n| #4 d| 0.2 n| #5 d| 0.2 n| #6 d| a n| #7 d| 2 n| #8 d| 2.005 n| #9 d| -2 n| #10 d| 2 n| #11 d| 0 0 1 1 n| #12 d| 10 n| #13 d| 100 n| #14 d| 0.01 n| #15 d| x
3 --@@
4 name = "Quasi"
5 description = "See Model refs in user's guide"
6 type = "C"
8 parameters = {"a", "b", "c", "d"}
10 variables = {"x", "y", "z"}
12 function f(a, b, c, d, x, y, z)
14 x1 = (a - b) * x - c * y + x * z + x * d * (1.0 - z^2)
15 y1 = c * x + (a - b) * y + y * z + y * d * (1.0 - z^2)
16 z1 = a * z - x^2 - y^2 - z^2
18 return x1, y1, z1
20 end