Skip to content

Commit 8824abb

Browse files
committedSep 29, 2022
Forbid zero delay.
Closes modelica#3245
1 parent 0f1ed88 commit 8824abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎chapters/operatorsandexpressions.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ \subsection{Derivative and Special Purpose Operators with Function Syntax}\label
750750
Evaluates to \lstinline!$\mathit{expr}$(time - $\mathit{delayTime}$)! for $\text{\lstinline!time!} > \text{\lstinline!time.start!} + \mathit{delayTime}$ and \lstinline!$\mathit{expr}$(time.start)! for $\text{\lstinline!time!} \leq \text{\lstinline!time.start!} + \mathit{delayTime}$.
751751
The arguments, i.e., $\mathit{expr}$, $\mathit{delayTime}$ and $\mathit{delayMax}$, need to be subtypes of \lstinline!Real!.
752752
$\mathit{delayMax}$ needs to be additionally a parameter expression.
753-
The following relation shall hold: $0 \leq \mathit{delayTime} \leq \mathit{delayMax}$, otherwise an error occurs.
753+
The following relation shall hold: $0 < \mathit{delayTime} \leq \mathit{delayMax}$, otherwise an error occurs.
754754
If $\mathit{delayMax}$ is not supplied in the argument list, $\mathit{delayTime}$ needs to be a parameter expression.
755755
For non-scalar arguments the function is vectorized according to \cref{vectorized-calls-of-functions}.
756756
For further details, see \cref{delay}.

0 commit comments

Comments
 (0)
Please sign in to comment.