Re: Integer residue-classes
John Cowan 26 Feb 2006 15:52 UTC
Michael Sperber scripsit:
> So I can't fault your argument, but I really am not sure which version
> (DIV+MOD which switches behavior depending on the second argument, or
> separate DIV+MOD and QUO+REM) would be easier to remember or less
> confusing. It would help, if more people on this list could chime in.
Now that the question is verbal rather than mathematical, I feel
competent to comment: I prefer the separate functions and the names
DIV+, MOD+, DIV-, and MOD-.
--
We pledge allegiance to the penguin John Cowan
and to the intellectual property regime xxxxxx@ccil.org
for which he stands, one world under http://www.ccil.org/~cowan
Linux, with free music and open source http://www.ap.org
software for all. --Julian Dibbell on Brazil, edited