\Header{Arithmetic}{Arithmetic Operators}
\alias{$+$}{Arithmetic}
\alias{$-$}{Arithmetic}
\alias{$*$}{Arithmetic}
\alias{$/$}{Arithmetic}
\alias{$\hat{}$}{Arithmetic}
\alias{$\%\%$}{Arithmetic}
\alias{$\%/\%$}{Arithmetic}
\keyword{arith}{Arithmetic}
\begin{Usage}
\begin{verbatim}
x + y
x - y
x * y
x / y
x ^ y
x %% y
x %/% y
\end{verbatim}
\end{Usage}
\begin{Description}
These binary operators perform arithmetic on vector objects.\end{Description}
\begin{Value}
They return numeric vectors containing the result of the element
by element operations.  The elements of shorter vectors are recycled
as necessary.  The operators are \texttt{+} for addition, \texttt{-} for
subtraction \texttt{*} for multiplication, \texttt{/} for division and
\texttt{$\,\hat{\,}$} for exponentiation.

\texttt{\%\%} indicates \texttt{x mod y} and \texttt{\%/\%} indicates integer
division. It is guaranteed that \texttt{x  ==  (x \%\% y)  +  y * ( x \%/\% y )}
unless \texttt{y == 0} where the result is \texttt{\Link{NA}} or
\texttt{\Link{NaN}} (depending on the \texttt{\Link{typeof}} of the arguments).


Objects such as arrays or time-series can be operated on this
way provided they are conformable.\end{Value}
\begin{SeeAlso}
\texttt{\Link{Math}} for miscellaneous and \texttt{\Link{Special}} for special
mathematical functions.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x <- -1:12
x + 1
2 * x + 3
x %% 2 #-- is periodic
x %/% 5
\end{ExampleCode}
\end{Examples}

