From 4372d69bc0bf6c3a20560270196a0746e7c82359 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Tue, 14 Jul 2020 22:52:24 +0200 Subject: [PATCH] Clean up whitespace in small code listing --- chapters/functions.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/functions.tex b/chapters/functions.tex index aaf2201d2..78fe67bb0 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -370,9 +370,9 @@ \section{Pure Modelica Functions}\doublelabel{pure-modelica-functions} model M // Assume sin, cos, asin are pure functions with normal derivatives. input Real x[2]; input Real w; - Real y[2]=[cos(w),sin(w);-sin(w),cos(w)]*x; - Real z[2]=der (y); - Real a=0*asin(w); + Real y[2] = [cos(w), sin(w); -sin(w), cos(w)] * x; + Real z[2] = der(y); + Real a = 0 * asin(w); end M; \end{lstlisting} A tool only needs to generate one call of the pure function \lstinline!cos(w)!