Add 06/21 by Matteo

This commit is contained in:
Marco Realacci 2022-11-14 16:30:34 +01:00
parent 970467fe89
commit 1be2085d94
169 changed files with 962 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

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;