imod

Remainder after division with divisor's sign (complexified version of mod).

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$ (with $n$'s sign). 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 (with divisor's sign) 1×1
complex
-

See also

mod