Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Accumulate

Accumulate[list]
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.
Introduced in 2007
(6.0)
| Updated in 2008
(7.0)