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)