Skip to content

Commit

Permalink
Simplify heading to increase visibility of its important part
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jan 25, 2022
1 parent 2c88cc1 commit 5eb5cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chapters/arrays.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ \subsection{Multiplication of Matrices and Vectors}\label{matrix-and-vector-mult
\end{lstlisting}
\end{example}

\subsection{Division of Scalars or Numeric Arrays by Numeric Scalars}\label{division-of-scalars-or-numeric-arrays-by-numeric-scalars}
\subsection{Division by Numeric Scalars}\label{division-by-numeric-scalars}

Division \lstinline!a / s! of numeric scalars, vectors, matrices, or arrays \lstinline!a! and numeric scalars \lstinline!s! is defined element-wise.
The result is always of \lstinline!Real! type. In order to get integer division with truncation, use the function \lstinline!div!.
Expand Down
8 changes: 2 additions & 6 deletions chapters/interface.tex
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,8 @@ \section{Type Compatible Expressions}\label{type-compatible-expressions}
If \lstinline!A! is a \lstinline!Real! expression then \lstinline!B! must be a \lstinline!Real! or \lstinline!Integer! expression
and the type compatible expression is \lstinline!Real!, compare \cref{standard-type-coercion}.
\item
If \lstinline!A! is an \lstinline!Integer! expression then \lstinline!B! must be a \lstinline!Real! or \lstinline!Integer!
expression. For exponentiation and division the type compatible
expression is \lstinline!Real! (even if both \lstinline!A! and \lstinline!B! are \lstinline!Integer!) see \cref{exponentiation-of-scalars-of-numeric-elements}
and \cref{division-of-scalars-or-numeric-arrays-by-numeric-scalars}, in
other cases the type compatible expression is \lstinline!Real! or \lstinline!Integer! (same as
\lstinline!B!), compare \cref{standard-type-coercion}.
If \lstinline!A! is an \lstinline!Integer! expression then \lstinline!B! must be a \lstinline!Real! or \lstinline!Integer! expression.
For exponentiation and division the type compatible expression is \lstinline!Real! (even if both \lstinline!A! and \lstinline!B! are \lstinline!Integer!) see \cref{exponentiation-of-scalars-of-numeric-elements} and \cref{division-by-numeric-scalars}, in other cases the type compatible expression is \lstinline!Real! or \lstinline!Integer! (same as \lstinline!B!), compare \cref{standard-type-coercion}.
\item
If \lstinline!A! is a \lstinline!Boolean! expression then \lstinline!B! must be a \lstinline!Boolean! expression and
the type compatible expression is \lstinline!Boolean!.
Expand Down

0 comments on commit 5eb5cf2

Please sign in to comment.