Re: Sum of list elements

*To*: mathgroup at smc.vnet.net*Subject*: [mg49370] Re: Sum of list elements*From*: spam at husumtoften.invalid (Per Rønne)*Date*: Fri, 16 Jul 2004 06:07:02 -0400 (EDT)*References*: <200407130923.FAA10334@smc.vnet.net> <cd35pk$qc8$1@smc.vnet.net> <cd5o9d$av7$1@smc.vnet.net>*Reply-to*: spam at husumtoften.dk (Per Rønne)*Sender*: owner-wri-mathgroup at wolfram.com

Per Rønne <spam at husumtoften.invalid> wrote: > > Total is new in version 5. > > Yes - isn't part of Teacher's Edition. Which uses 4.1 [Classic MacOS + > Windows] and 4.2 [MacOS X]. Does, this, btw work in the same way as Total in version 5? Total[_l]:= Plus@@Flatten[l] Total[l_, n_] := Plus @@ Apply[Plus, l, n - 1] -- Per Erik Rønne

**References**:**Re: Sum of list elements***From:*"Ravinder Kumar B." <ravi@crest.ernet.in>