fixes to README file
[iDMC.git] / models / standard.lua
blob14994d90131f7b4a6a7116a693a880e63d1bd3c9
1 --% ft| TRAJECTORY_T0_V0_A1_O0 sn| Chaotic~attractor n| #0 d| 0.46 n| #1 d| 0.37 n| #2 d| 0.937 n| #3 d| 1000 n| #4 d| 10000 n| #5 d| 10000 n| #6 d| x n| #7 d| y
2 --% ft| BIFURCATION_1 sn| Chaos n| #0 d| 0.4 n| #1 d| 0.3 n| #2 d| a n| #3 d| 0 n| #4 d| 2 n| #5 d| -1.1 n| #6 d| 1.1 n| #7 d| 500 n| #8 d| 200 n| #9 d| x
3 --@@
4 name = "Standard"
5 description = "See Model refs in user's guide"
6 type = "D"
7 parameters = {"a"}
8 variables = {"x", "y"}
10 function f(a, x, y)
12 two_pi = 2 * math.pi
13 x1 = math.mod(x + y + a * (1/two_pi) * math.sin(two_pi * x), 1)
14 y1 = y + a * (1/two_pi) * math.sin(two_pi * x)
16 return x1, y1
18 end