File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
text/source/behavior/discrete Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Consider the following almost trivial model:
18
18
:language: modelica
19
19
:lines: 2-
20
20
21
- If we attempt to simulate this model for 5 seconds, we fine that the
21
+ If we attempt to simulate this model for 5 seconds, we find that the
22
22
simulation terminates after about 2 seconds with the following trajectory:
23
23
24
24
.. plot :: ../plots/Decay1.py
@@ -63,7 +63,7 @@ Given the ``if`` expression:
63
63
64
64
.. code-block :: modelica
65
65
66
- der(x) = if x>=0 sqrt(x) else 0;
66
+ der(x) = if x>=0 then sqrt(x) else 0;
67
67
68
68
it is entirely possible that ``sqrt `` will be called with a negative
69
69
argument. The reason is related to the fact that this is a state
@@ -122,7 +122,7 @@ Recall our previous equation:
122
122
123
123
.. code-block :: modelica
124
124
125
- der(x) = if x>=0 sqrt(x) else 0;
125
+ der(x) = if x>=0 then sqrt(x) else 0;
126
126
127
127
In this case, the zero crossing function is simply :math: `x` since the
128
128
event occurs when :math: `x` itself crosses zero.
You can’t perform that action at this time.
0 commit comments