next up previous contents index
Next: heuristicGcd Up: HeuristicGcd Previous: HeuristicGcd   Contents   Index


balancedRemainder


\begin{usage}
balancedRemainder(n, m)
\end{usage}


Signature


\begin{params}
{\em n} & Z & An integer\\
{\em m} & Z & An integer\\\end{params}

\begin{retval}
Returns $-m/2 \le r < m/2$\ such that $n \equiv r \pmod m$.
\end{retval}


Manuel Bronstein 2000-12-13