From a116ee872389d7caa157b42aa57870c5451fcb48 Mon Sep 17 00:00:00 2001 From: Hans Olsson Date: Tue, 9 Nov 2021 09:02:13 +0100 Subject: [PATCH] Update chapters/operatorsandexpressions.tex Co-authored-by: Henrik Tidefelt --- chapters/operatorsandexpressions.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/operatorsandexpressions.tex b/chapters/operatorsandexpressions.tex index 213e4314f..a470cf281 100644 --- a/chapters/operatorsandexpressions.tex +++ b/chapters/operatorsandexpressions.tex @@ -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 restrictions for calling functions declared as \lstinline!impure! serve a similar purpose as the variability restrictions, see \cref{pure-modelica-functions}, and thus it is not necessary consider purity in the definition of variability. +The restrictions for calling functions declared as \lstinline!impure! serve a similar purpose as the variability restrictions, see \cref{pure-modelica-functions}, and thus it is not necessary to consider purity in the definition of variability. 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.