so-un-bot/0721_6/wrong2.txt
2022-11-15 14:27:16 +01:00

18 lines
No EOL
203 B
Text

0;
end System;
2.
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;
der(x) = 2*u - 1.0;
end System;