Skip to content

Commit ab9071b

Browse files
committed
Correction: n times more than is actually (n+1) times
If B is n times faster than A, then v_B = (n+1) v_A Therefore the correction in wording.
1 parent 2d206d5 commit ab9071b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/source/behavior/discrete/sampling.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ defined in terms of integer quantities which allow exact comparison.
105105
This means that when executing a simulation, we can know for certain
106106
that these two clocks will trigger simultaneously.
107107

108-
If we wanted to create a clock that was exactly two times slower than
108+
If we wanted to create a clock that was exactly half as slow as
109109
``x``, we can use the ``subSample`` operator to accomplish this. We
110110
see this in the definition of ``z``:
111111

@@ -128,8 +128,8 @@ But by defining ``z`` using the ``subSample`` operator and defining it
128128
with respect to ``x`` we ensure that ``z`` is always triggering at
129129
half the frequency of ``x`` regardless of how ``x`` is defined.
130130

131-
In a similar way, we can define another clock, ``w`` that triggers 3 times more
132-
frequently than ``x`` by using the ``superSample`` operator:
131+
In a similar way, we can define another clock, ``w`` that triggers 3 times as
132+
frequently as ``x`` by using the ``superSample`` operator:
133133

134134
.. literalinclude:: /ModelicaByExample/DiscreteBehavior/SynchronousSystems/SamplingWithClocks.mo
135135
:language: modelica
@@ -142,7 +142,7 @@ Again, we could have defined ``w`` directly using ``sample`` with:
142142
w = sample(time, Clock(1,30));
143143
144144
But by using ``superSample``, we can ensure that ``w`` is always
145-
sampling three times faster than ``x`` and six times faster than ``z``
145+
sampling three times as fast as ``x`` and six times as fast as ``z``
146146
(since ``z`` is also defined with respect to ``x``).
147147

148148
The synchronous clock features in Modelica are relatively new. As

0 commit comments

Comments
 (0)