aboutsummaryrefslogtreecommitdiffstats
path: root/notes/lotka_volterra.toml
diff options
context:
space:
mode:
Diffstat (limited to 'notes/lotka_volterra.toml')
-rw-r--r--notes/lotka_volterra.toml63
1 files changed, 63 insertions, 0 deletions
diff --git a/notes/lotka_volterra.toml b/notes/lotka_volterra.toml
new file mode 100644
index 0000000..7d2cf0d
--- /dev/null
+++ b/notes/lotka_volterra.toml
@@ -0,0 +1,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"
+