gives a list of the successive accumulated totals of elements in list.

Details and OptionsDetails and Options

  • If list has length n, then Accumulate[list] will have the same length.
  • Accumulate[list] is effectively equivalent to Rest[FoldList[Plus, 0, list]].
  • Accumulate[list, Method->"CompensatedSummation"] uses compensated summation to reduce numerical error in the result.
New in 6 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »