File: mod.Rd

package info (click to toggle)
r-cran-matlab 1.0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 640 kB
  • sloc: sh: 13; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% $Id: mod.Rd 25 2022-05-30 18:46:01Z proebuck $

\name{mod}
\alias{mod}
\alias{rem}
\title{MATLAB mod/rem functions}
\description{
  Provides modulus and remainder after division.
}
\usage{
mod(x, y)
rem(x, y)
}
\arguments{
  \item{x, y}{numeric vectors or objects}
}
\value{
  Returns vector containing result of the element by element operations.
}
\author{
  P. Roebuck \email{proebuck1701@gmail.com}
}
\examples{
## same results with x, y having the same sign
mod(5, 3)
rem(5, 3)
## same results with x, y having different signs
mod(-5, 3)
rem(-5, 3)
}
\keyword{arith}