2012/11/23 Antonio Lapira <antoniolapira at yahoo.it>:
> why gdc accepts only 2 numbers? like gdc(60,48) and not for example: gdc (60,48,36)?
You can use lreduce to extend a binary function to an n-ary function.
(Type ?? lreduce for more information.)
In case of gcd it is
(%i1) lreduce('gcd, [60,48,36]);
(%o1) 12
Please note that gcd is a little bit special here because it needs a
prefixed quote to work as intended.
HTH
Volker van Nek
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima