aboutsummaryrefslogtreecommitdiffstats
path: root/notes/lotka_volterra.toml
blob: 7d2cf0d0907e5dde60970d8d6e7cb9344579f922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

[model]
name-en = "Lotka–Volterra equations"
descrption-en = "Predator-Prey Model"
sexprs = ['''
  (=
    (partial-derivative x t)
    (- (* alpha x)
       (* beta x y)))
  ''','''
  (=
    (partial-derivative y t)
    (- (* delta x y)
       (* gamma y)))
  ''']

[variables]

  [variables.t]
  type = 'time' # or "independent"?

  [variables.x]
  type = 'state'

  [variables.y]
  type = 'state'

  [variables.alpha]
  type = 'parameter'
  latex = '\alpha'
  unicode = 'α'

  [variables.beta]
  type = 'parameter'
  latex = '\beta'
  unicode = 'β'

  [variables.delta]
  type = 'parameter'
  latex = '\delta'
  unicode = 'δ'

  [variables.gamma]
  type = 'parameter'
  latex = '\gamma'
  unicode = 'γ'

[examples]

  [examples.mathworld]
  x = 10
  y = 5
  alpha = 1.5
  beta = 1
  gamma = 1
  t = [0, 20]

[references]
  
  [references.url]
  "Mathworld" = "http://mathworld.wolfram.com/Lotka-VolterraEquations.html"
  "Wikipedia" = "https://en.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equations"