From 5ee5abc42f7fc0ea2e8dfb493cee577d672f645d Mon Sep 17 00:00:00 2001 From: OLSSON Hans Date: Mon, 15 Nov 2021 14:43:59 +0100 Subject: [PATCH] UseHspaceInstead --- chapters/operatorsandexpressions.tex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chapters/operatorsandexpressions.tex b/chapters/operatorsandexpressions.tex index e71f7777e..2f079e569 100644 --- a/chapters/operatorsandexpressions.tex +++ b/chapters/operatorsandexpressions.tex @@ -99,10 +99,10 @@ \section{Operator Precedence and Associativity}\label{operator-precedence-and-as The unary minus and plus in Modelica is slightly different than in Mathematica\footnote{\emph{Mathematica} is a registered trademark of Wolfram Research Inc.} and in MATLAB\footnote{\emph{MATLAB} is a registered trademark of MathWorks Inc.}, since the following expressions are illegal (whereas in Mathematica and in MATLAB these are valid expressions): \begin{lstlisting}[language=modelica] -2 * -2 // = -4 in Mathematica/MATLAB; is illegal in Modelica -- - 2 // = 2 in Mathematica/MATLAB; is illegal in Modelica -+ + 2 // = 2 in Mathematica/MATLAB; is illegal in Modelica -2 - -2 // = 4 in Mathematica/MATLAB; is illegal in Modelica +2*$\hspace{0pt}$-2 // = -4 in Mathematica/MATLAB; is illegal in Modelica +-$\hspace{0pt}$-2 // = 2 in Mathematica/MATLAB; is illegal in Modelica ++$\hspace{0pt}$+2 // = 2 in Mathematica/MATLAB; is illegal in Modelica +2-$\hspace{0pt}$-2 // = 4 in Mathematica/MATLAB; is illegal in Modelica \end{lstlisting} Non-associative exponentiation and array range operator: