Sum and product of an array: Difference between revisions

Add Maple implementation.
mNo edit summary
(Add Maple implementation.)
Line 1,244:
product = 1 fby product * x
end</lang>
 
=={{header|Maple}}==
<lang maple>a := Array([1, 2, 3, 4, 5, 6]);
add(a);
mul(a);</lang>
 
=={{header|Mathematica}}==
Mathematica provides many ways of doing the sum of an array (any kind of numbers or symbols):