Hi Barton, you wrote in part:
> There is a new verion of nummod on
> http://www.unk.edu/facstaff/profiles/willisb/
> (retrive the file nummod(2).zip.)
Since you have written these useful functions (ceiling, compare,
characteristic function, floor, and numeric modulus) with
your usual attention to detail, I propose that these be moved
into maxima/src after testing.
Some minor notes:
There already exists a function compare in src/compar.lisp
which is somewhat similar. compare is never called from
anywhere in src/, test/, or share/, so far as I can tell, and it is
undocumented. So I think it is safe to cut the existing compare
and replace it with the nummod version.
I wouldn't want to preserve nummod as a separate function
apart from the existing function mod; we should modify mod
so that it calls nummod for the appropriate cases.
Incidentally mod and nummod assume different conventions;
mod (12, 7) => - 2, but nummod (12, 7) => 5.
My own preference is that mod (12, 7) => 5.
Thanks for your contributions. I appreciate it a lot.
Robert Dodier