imod

Remainder after division ("complexified" version of the mod function).

Back to Numerical Differentiation Toolbox Contents.

Contents

Syntax

r = imod(a,n)

Description

r = imod(a,n) returns the remainder, $r$, after division of $a$ by $n$. Note that $a$ can be complex, but it is assumed that $n$ is real.

Input/Output Parameters

Variable Symbol Description Format Units
Input a dividend 1×1
complex
-
n divisor 1×1
double
-
Output r remainder of 1×1
complex
-

See also

mod