mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 17:46:13 +01:00
25 lines
No EOL
206 B
Text
25 lines
No EOL
206 B
Text
<pre>
|
|
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;
|
|
</pre> |