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 Aug 30, 2022
1 parent 11567f5 commit 2abb214
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ \subsection{Numeric Functions and Conversion Functions}\label{numeric-functions-
When \lstinline!y! passes through zero, neither form of the equation would have a solution in an open neighborhood of \lstinline!y! $= 0$, and hence solving the equation would have to fail at some point sufficiently close to \lstinline!y! $= 0$.
Without event generation, on the other hand, the equation can be solved easily for \lstinline!x!, also as \lstlinline!y! passes through zero.

In inverted form this equation is \lstinline!x=sign(y)*sqrt(abs(y))!, with similar issues.
In inverted form this equation is \lstinline!x = sign(y) * sqrt(abs(y))!.
With event generation, the call to \lstinline!sqrt! would fail when applied to a negative number during root finding of the zero crossing for \lstinline!abs(y)!, compare \cref{events-and-synchronization}.
Without event generation, on the other hand, evaluating \lstinline!sqrt(abs(y))! will never fail.
\end{nonnormative}
\end{functiondefinition}

Expand Down

0 comments on commit 2abb214

Please sign in to comment.