Skip to content

Commit

Permalink
Use colon instead of dash when attaching 'th' to ordinals
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 31, 2020
1 parent 44383d4 commit 78402f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chapters/arrays.tex
Expand Up @@ -971,8 +971,8 @@ \section{Array Indexing}\label{array-indexing}
\begin{example}
Array indexing expressions:
\begin{lstlisting}[language=modelica]
a[:, j] // Vector of the j-th column of a.
a[j] // Vector of the j-th row of a. Same as: a[j, :]
a[:, j] // Vector of the j:th column of a.
a[j] // Vector of the j:th row of a. Same as: a[j, :]
a[j : k] // Same as: {a[j], a[j+1], $\ldots$, a[k]}
a[:, j : k] // Same as: [a[:, j], a[:, j+1], $\ldots$, a[:, k]]
\end{lstlisting}
Expand Down
5 changes: 4 additions & 1 deletion chapters/synchronous.tex
Expand Up @@ -668,7 +668,10 @@ \subsection{Sub-clock conversion operators}\label{sub-clock-conversion-operators
subSample($u$, factor=$\mathit{factor}$)
\end{lstlisting}\end{synopsis}
\begin{semantics}
The clock of \lstinline!y = subSample($u$, $\mathit{factor}$)! is $\mathit{factor}$ times slower than the clock of $u$. At every $\mathit{factor}$ ticks of the clock of $u$, the operator returns the value of $u$. The first activation of the clock of \lstinline!y! coincides with the first activation of the clock of $u$, and then every activation of the clock of \lstinline!y! coincides with the every $\mathit{factor}$-th activativation of the clock of $u$. If argument $\mathit{factor}$ is not provided or is equal to zero, it is inferred, see \cref{sub-clock-inferencing}.
The clock of \lstinline!y = subSample($u$, $\mathit{factor}$)! is $\mathit{factor}$ times slower than the clock of $u$.
At every $\mathit{factor}$ ticks of the clock of $u$, the operator returns the value of $u$.
The first activation of the clock of \lstinline!y! coincides with the first activation of the clock of $u$, and then every activation of the clock of \lstinline!y! coincides with the every $\mathit{factor}$:th activativation of the clock of $u$.
If argument $\mathit{factor}$ is not provided or is equal to zero, it is inferred, see \cref{sub-clock-inferencing}.
\end{semantics}
\end{operatordefinition}

Expand Down

0 comments on commit 78402f2

Please sign in to comment.