Skip to content

Commit

Permalink
Update reason that might cause parameter evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 16, 2020
1 parent 8ba9961 commit dbca391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/classes.tex
Expand Up @@ -423,10 +423,10 @@ \subsection{Component Variability Prefixes discrete, parameter, constant}\label{
annotation(Evaluate = false); /* Normal parameter */
parameter Boolean b = false;

/* Variability analysis might cause evaluation of n: */
/* Fulfillment of acyclic binding rule might cause evaluation of n: */
parameter Real x = if b and n > 3 then 1 - x else 0;

/* Variability analysis cannot cause evaluation of p: */
/* Fulfillment of acyclic binding rule cannot cause evaluation of p: */
parameter Real y = if b and p > 3 then 1 - y else 0;
\end{lstlisting}
\end{example}
Expand Down

0 comments on commit dbca391

Please sign in to comment.