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)!