Skip to content

Commit

Permalink
Clean up whitespace in small code listing
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jul 14, 2020
1 parent b889666 commit 4372d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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)!
Expand Down

0 comments on commit 4372d69

Please sign in to comment.