Added 07-21 exam

This commit is contained in:
Deco71 2022-11-16 18:08:57 +01:00
parent 1a3767b4a9
commit 81bfdb2c34
180 changed files with 0 additions and 81 deletions

View file

@ -0,0 +1,18 @@
<pre>
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;
</pre>

View file

@ -0,0 +1,4 @@
Si consideri l'automa seguente:
0->1 e 1->0
Quale dei seguenti modelli Modelica fornisce un modello ragionevole per l'automa di cui sopra.

View file

@ -0,0 +1,18 @@
<pre>
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;
</pre>

View file

@ -0,0 +1,18 @@
<pre>
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;
</pre>