return values from mod



On Fri, 2005-08-04 at 09:59 -0700, Richard Fateman wrote:
> You could use the underlying common lisp mod or rem function by
> typing ?mod(m,n)  with m and n integers.

Thank you very much, that does work nicely for a single value. 

Now, how about a list of values:

wxMaxima 0.6.0 http://wxmaxima.sourceforge.netMaxima restarted.
(%i1)?mod(8,5);
(%o1)3
(%i2)?mod([0,1,2,3,4,5,6,7,8,9],10);
Maxima encountered a Lisp error: Error in MACSYMA-TOP-LEVEL [or a
callee]: ((MLIST SIMP) 0 1 2 3 4 5 6 7 8 9) is not of type 
(OR RATIONAL
LISP:FLOAT).Automatically continuing.To reenable the Lisp debugger set
*debugger-hook* to nil.
(%i3)mod([0,1,2,3,4,5,6,7,8,9],10);
(%o3)[0,1,2,3,4,5,-4,-3,-2,-1]

Thanks again, Bob


-- 
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.