Skip to content

Commit

Permalink
Update chapters/operatorsandexpressions.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Nov 8, 2021
1 parent f2a3bf5 commit f3d68f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ \subsection{Function Variability}\label{function-variability}
The purity of the function, see \cref{pure-modelica-functions}, does not influence the variability of the function call.

\begin{nonnormative}
The reason the variability ignores if functions is declared as \lstinline!impure! is that even in this case variability does not depend on the function.
The reason the variability ignores whether a function is declared as \lstinline!impure! is that even in this case variability does not depend on the function.
Consider a function reading an external file and returning some value from that file.
Different uses can have the file updated before the simulation (as a parameter-expression), or during the simulation (as a discrete-time expression).
Thus it depends on the use case and the specific file, not the function itself, and it would even be possible to update the file in continuous time (as part of an algorithm) and still use the same function.
Expand Down

0 comments on commit f3d68f6

Please sign in to comment.