Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Sum of list elements

  • To: mathgroup at
  • 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: <> <cd35pk$qc8$> <cd5o9d$av7$>
  • Reply-to: spam at (Per Rønne)
  • Sender: owner-wri-mathgroup at

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

  • Prev by Date: Re: Tr vs Total
  • Next by Date: DeleteCases : several at once, conditions
  • Previous by thread: Re: Re: Sum of list elements
  • Next by thread: Re: Sum of list elements