Skip to content

Commit

Permalink
Phone discussion. Deprecate one case.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Dec 20, 2022
1 parent 86b9801 commit 28589fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapters/arrays.tex
Expand Up @@ -1272,7 +1272,8 @@ \subsection{Element-wise Exponentiation}\label{element-wise-exponentiation}
The result should correspond to mathematical exponentiation (ideally the correctly rounded result based on the inputs) with the following special cases:
\begin{itemize}
\item If $\text{\lstinline!a!} = 0.0$ and $\text{\lstinline!b!} = 0$ for an \lstinline!Integer! expression \lstinline!b! the result is $1.0$.
\item If $\text{\lstinline!a!} < 0$ and \lstinline!b! is an \lstinline!Integer! or a \lstinline!Real! having an integer value, the result is defined as $\pm |a|^b$, with sign depending on whether \lstinline!b! is even (positive) or odd (negative).
\item If $\text{\lstinline!a!} < 0$ and \lstinline!b! is an \lstinline!Integer!, the result is defined as $\pm |a|^b$, with sign depending on whether \lstinline!b! is even (positive) or odd (negative).
\item If $\text{\lstinline!a!} < 0$ and \lstinline!b! is a \lstinline!Real! having an integer value, the result is defined as $\pm |a|^b$, with sign depending on whether \lstinline!b! is even (positive) or odd (negative). This case is deprecated, and tools may warn once during a simulation if this occurs.
\item Consequences of other exceptional situations, such as ($\text{\lstinline!a!} = 0.0$ and $\text{\lstinline!b!} = 0.0$ for a \lstinline!Real b!, $\text{\lstinline!a!} = 0.0$ and $\text{\lstinline!b!} < 0$, or $\text{\lstinline!a!} < 0$ and \lstinline!b! does not have an integer value) or overflow are undefined.
\end{itemize}

Expand Down

0 comments on commit 28589fb

Please sign in to comment.