apply(+,...), reduce, sum, ...



-----maxima-bounces at math.utexas.edu wrote: -----

>For example, how do convert a list to a sum,  like from [a,b,c] to a+b+c?

(%i5) apply("+",[a,b,c]);
(%o5) c+b+a

Instead of apply, you can use xreduce, rreduce, lreduce, or tree_reduce
(see user documentation). The same quote trick works for apply("*",
[a,b,c])
and apply("^", [x,5]).

Barton