Rem: Remainder After Division (GNU Octave/MATLAB compatible)

RemR Documentation

Remainder After Division (GNU Octave/MATLAB compatible)

Description

Obtain the remainder after division in a manner compatible with GNU Octave/MATLAB.

Usage

Rem(x, n)

Arguments

x, n

An R object (array, matrix, vector)

Value

"Return the remainder of the division x / y." Source: Eaton.

Author(s)

Irucka Embry, Samit Basu (FreeMat)

References

  1. Samit Basu (2002-2006). FreeMat v4.0, https://freemat.sourceforge.net/help/mathfunctions_rem.html.

  2. John W. Eaton, David Bateman, Søren Hauberg, and Rik Wehbring (November 2022). GNU Octave: A high-level interactive language for numerical computations: Edition 7 for Octave version 7.3.0. https://docs.octave.org/octave.pdf. Page 564.

Examples


# Example from GNU Octave

library(iemisc)

x <- 23.4
y <- 20

Rem(x, y)


# Please refer to the iemisc: Examples from GNU Octave Rem, Mod, and
# fractdiff Compatible Functions vignette for additional examples




iemisc documentation built on Sept. 25, 2023, 5:09 p.m.