so-un-bot/Data/ingsw/0721_6/correct.txt

14 lines
195 B
Text
Raw Normal View History

2022-11-16 17:56:16 +01:00
<pre>
2022-11-15 14:27:16 +01:00
class System
Real x; // MB in buffer
Real u; // input pulse
initial equation
x = 3;
u = 0;
equation
when sample(0, 1) then
u = 1 - pre(u);
end when;
2022-11-16 17:56:16 +01:00
der(x) = 2*u - 1.0;
end System;
</pre>