so-un-bot/Ingegneria del Software/0621_25/wrong2.txt

12 lines
182 B
Text
Raw Normal View History

2022-11-14 16:30:34 +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;
der(x) = 2*u + 1.0;
end System;