Artifact ae4c44c13615b1c622970f2e8203af4d1c7038d23476630467583d69baa5f5c2:
- Executable file
r37/lisp/csl/html/r37_0269.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 661) [annotate] [blame] [check-ins using] [more...]
<A NAME=BALANCED_MOD> <TITLE>BALANCED_MOD</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>BALANCED\_MOD</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>switch</B><P> <P> <P> <P> <A HREF=r37_0305.html>modular</A>numbers are normally produced in the range [0,. ..<n>), where <n> is the current modulus. With <em>balanced_mod</em> on, the range [-<n>/2,<n>/2], or more precisely [-floor((<n>-1)/2), ceiling((<n>-1)/2)], is used instead. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> setmod 7; 1 on modular; 4; 4 on balanced_mod; 4; -3 </TT></PRE><P>