move legacy code to separate branch

This commit is contained in:
Marco Realacci 2025-01-17 21:06:51 +01:00
parent 68a30c8ee6
commit 11b4c48c3a
3528 changed files with 14477 additions and 53258 deletions

View file

@ -0,0 +1,16 @@
function next
input Integer x;
output Integer y;
algorithm
y := 1 - x;
end next;
class System
Integer x;
initial equation
x = 0;
equation
when sample(0, 1) then
x = next(pre(x));
end when;
end System;

View file

@ -0,0 +1,3 @@
img=https://i.imgur.com/F6JCFSU.png
Si consideri l'automa segunete:
Quale dei seguenti modelli Modelica fornisce un modello ragionevole per l'automa di cui sopra.

View file

@ -0,0 +1,16 @@
function next
input Integer x;
output Integer y;
algorithm
y := x;
end next;
class System
Integer x;
initial equation
x = 0;
equation
when sample(0, 1) then
x = next(pre(x));
end when;
end System;

View file

@ -0,0 +1,16 @@
function next
input Integer x;
output Integer y;
algorithm
y := 1 + x;
end next;
class System
Integer x;
initial equation
x = 0;
equation
when sample(0, 1) then
x = next(pre(x));
end when;
end System;

View file

@ -0,0 +1,16 @@
function next
input Integer x;
output Integer y;
algorithm
y := 1 - x;
end next;
class System
Integer x;
initial equation
x = 0;
equation
when sample(0, 1) then
x = next(pre(x));
end when;
end System;