Artifact 3a5c72c85a5357c13442c7454112fceabc11868bff4160628abe0e904aa5825d:
- Executable file
r37/lisp/csl/html/r37_0102.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: 1057) [annotate] [blame] [check-ins using] [more...]
<A NAME=REMAINDER> <TITLE>REMAINDER</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>REMAINDER</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> <P> <P> The <em>remainder</em> operator returns the remainder after its first argument is divided by its second argument. <P> <P> <P> <H3> syntax: </H3> <em>remainder</em>(<expression>,<expression>) <P> <P> <P> <expression> can be any valid REDUCE polynomial, and is not limited to numeric values. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> remainder(13,6); 1 remainder(x**2 + 3*x + 2,x+1); 0 remainder(x**3 + 12*x + 4,x**2 + 1); 11*X + 4 remainder(sin(2*x),x*y); SIN(2*X) </TT></PRE><P>In the default case, remainders are calculated over the integers. If you need the remainder with respect to another domain, it must be declared explicitly. <P> <P> If the first argument to <em>remainder</em> contains a denominator not equal to 1, an error occurs. <P> <P> <P>