fixed traj. plot bug when manual bounds
[iDMC.git] / models / Primer / hopf.lua
blob9bda22b5583f1c02602566ea477845aa293c3fda
1 --% ft| TRAJECTORY_T0_V0_A1_O1 sn| Convergence~to~a~fixed~point n| #0 d| 1 n| #1 d| .5 n| #2 d| -0.2 n| #3 d| -1 n| #4 d| 0.05 n| #5 d| 0 n| #6 d| 5000 n| #7 d| 5000 n| #8 d| x n| #9 d| y
2 --% ft| TRAJECTORY_T0_V0_A1_O1 sn| Convergence~to~a~limit~cycle n| #0 d| 1 n| #1 d| 1 n| #2 d| .5 n| #3 d| -1.2 n| #4 d| 0.01 n| #5 d| 0 n| #6 d| 5000 n| #7 d| 5000 n| #8 d| x n| #9 d| y
3 --@@
4 name = "Hopf"
5 description = "See Model refs in user's guide"
6 type = "C"
7 parameters = {"mu", "k"}
8 variables = {"x", "y"}
10 function f(mu, k, x, y)
12 x1 = y + k*x * (x^2 + y^2)
13 x2 = -x + mu*y
15 return x1, x2
17 end