From 1bc5f02be654ed8df6f565245545ec49574a8e59 Mon Sep 17 00:00:00 2001 From: Hans Olsson Date: Tue, 22 Nov 2022 09:22:54 +0100 Subject: [PATCH] Update chapters/arrays.tex Co-authored-by: Henrik Tidefelt --- chapters/arrays.tex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapters/arrays.tex b/chapters/arrays.tex index 10837198d..334692aec 100644 --- a/chapters/arrays.tex +++ b/chapters/arrays.tex @@ -1273,8 +1273,7 @@ \subsection{Element-wise Exponentiation}\label{element-wise-exponentiation} \begin{itemize} \item If $\text{\lstinline!a!} = 0.0$ and $\text{\lstinline!b!} = 0$ for an \lstinline!Integer! expression \lstinline!b! the result is $0.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 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. +\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} Except for defining the special case of $0.0^0$ it corresponds to \lstinline[language=C]!pow(double a, double b)! in the ANSI~C library. \begin{nonnormative}