diff options
Diffstat (limited to 'examples/lotka_volterra')
-rw-r--r-- | examples/lotka_volterra/metadata.toml | 17 | ||||
-rw-r--r-- | examples/lotka_volterra/model.modelica | 11 | ||||
-rw-r--r-- | examples/lotka_volterra/page.md | 8 |
3 files changed, 19 insertions, 17 deletions
diff --git a/examples/lotka_volterra/metadata.toml b/examples/lotka_volterra/metadata.toml index 7d2cf0d..2e98841 100644 --- a/examples/lotka_volterra/metadata.toml +++ b/examples/lotka_volterra/metadata.toml @@ -2,17 +2,6 @@ [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] @@ -55,9 +44,3 @@ sexprs = [''' 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" - diff --git a/examples/lotka_volterra/model.modelica b/examples/lotka_volterra/model.modelica new file mode 100644 index 0000000..6f011a2 --- /dev/null +++ b/examples/lotka_volterra/model.modelica @@ -0,0 +1,11 @@ +model LotkaVolterra + parameter Real alpha; + parameter Real beta; + parameter Real delta; + parameter Real gamma; + Real x; + Real y; +equation + der(x) = (alpha * x) - (beta * x * y) + der(y) = (delta * x * y) - (gamma * y) +end LotkaVolterra; diff --git a/examples/lotka_volterra/page.md b/examples/lotka_volterra/page.md new file mode 100644 index 0000000..8b85919 --- /dev/null +++ b/examples/lotka_volterra/page.md @@ -0,0 +1,8 @@ + +This is a wikipage! + +## References + +* [Mathworld](http://mathworld.wolfram.com/Lotka-VolterraEquations.html) +* [Wikipedia](https://en.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equations) + |