Skip to content

Commit

Permalink
Use item list instead of beginning each semiLinear rule with \textbf{…
Browse files Browse the repository at this point in the history
…Rule X}
  • Loading branch information
henrikt-ma committed Jun 7, 2020
1 parent 3e94d51 commit 9e19079
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1016,9 +1016,9 @@ \subsubsection{semiLinear}\doublelabel{semilinear}
solutions. It is recommended that the following rules are used to
transform the equations during the translation phase in order to select
one meaningful solution in such cases:

\textbf{Rule 1}: The equations

\begin{itemize}
\item
The equations
\begin{lstlisting}[language=modelica]
y = semiLinear(x, sa, s1);
y = semiLinear(x, s1, s2);
Expand All @@ -1027,7 +1027,6 @@ \subsubsection{semiLinear}\doublelabel{semilinear}
y = semiLinear(x, sN, sb);
...
\end{lstlisting}

may be replaced by
\begin{lstlisting}[language=modelica, mathescape=true]
s1 = if x >= 0 then sa else sb
Expand All @@ -1038,19 +1037,20 @@ \subsubsection{semiLinear}\doublelabel{semilinear}
y = semiLinear(x, sa, sb);
\end{lstlisting}

\textbf{Rule 2}: The equations
\item
The equations
\begin{lstlisting}[language=modelica]
x = 0;
y = 0;
y = semiLinear(x, sa, sb);
\end{lstlisting}

may be replaced by
\begin{lstlisting}[language=modelica]
x = 0
y = 0;
sa = sb;
\end{lstlisting}
\end{itemize}

\begin{nonnormative}
For symbolic transformations, the following property is useful
Expand Down

0 comments on commit 9e19079

Please sign in to comment.