Skip to content

Commit 1e57594

Browse files
author
Michael Tiller
committed
Merge pull request #166 from michael-okeefe/may-22-2014
May 22 2014 (MPO)
2 parents 8164355 + 0feb2de commit 1e57594

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/source/behavior/discrete/decay.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Consider the following almost trivial model:
1818
:language: modelica
1919
:lines: 2-
2020

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
2222
simulation terminates after about 2 seconds with the following trajectory:
2323

2424
.. plot:: ../plots/Decay1.py
@@ -63,7 +63,7 @@ Given the ``if`` expression:
6363

6464
.. code-block:: modelica
6565
66-
der(x) = if x>=0 sqrt(x) else 0;
66+
der(x) = if x>=0 then sqrt(x) else 0;
6767
6868
it is entirely possible that ``sqrt`` will be called with a negative
6969
argument. The reason is related to the fact that this is a state
@@ -122,7 +122,7 @@ Recall our previous equation:
122122

123123
.. code-block:: modelica
124124
125-
der(x) = if x>=0 sqrt(x) else 0;
125+
der(x) = if x>=0 then sqrt(x) else 0;
126126
127127
In this case, the zero crossing function is simply :math:`x` since the
128128
event occurs when :math:`x` itself crosses zero.

0 commit comments

Comments
 (0)