Skip to content

Commit

Permalink
Minor cleanup or range operator
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jun 17, 2020
1 parent d7a838d commit 531dd8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/arrays.tex
Expand Up @@ -733,8 +733,8 @@ \subsection{Vector Construction}\doublelabel{vector-construction}
\lstinline[mathescape=true]!$j$ : $d$ : $k$! is the \lstinline!Integer! vector \lstinline[mathescape=true]!{$j$, $j+d$, $\ldots$, $j + n d$}!, with $n = \text{\lstinline!div!}(k - j, d)$, if $j$, $d$, and $k$ are of type \lstinline!Integer!.
\item
\lstinline[mathescape=true]!$j$ : $d$ : $k$! is the \lstinline!Real! vector \lstinline[mathescape=true]!{$j$, $j+d$, $\ldots$, $j + n d$}!, with $n = \text{\lstinline!floor!}((k-j)/d)$,
if $j$, $d$, or $k$ are of type \lstinline!Real!. In order to avoid rounding issues for the length it is recommended to use \lstinline!{j+d*i for i in 0:n}! or
\lstinline!linspace(j, k, n+1)! --- if the number of elements are known.
if $j$, $d$, or $k$ are of type \lstinline!Real!. In order to avoid rounding issues for the length it is recommended to use \lstinline!{j + d * i for i in 0 : n}! or
\lstinline!linspace(j, k, n + 1)! --- if the number of elements are known.
\item
\lstinline[mathescape=true]!$j$ : $d$ : $k$! is a \lstinline!Real! or \lstinline!Integer! vector with zero elements, if $d > 0$ and $j > k$ or if $d < 0$ and $j < k$.
\item
Expand Down

0 comments on commit 531dd8c

Please sign in to comment.