Refactor repo structure

This commit is contained in:
Marco Realacci 2024-01-19 03:29:39 +01:00
parent 36ac339086
commit 8fc89fbc03
1732 changed files with 3812 additions and 67 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;