**CIGAL Reference Manual, Chapter 3 (Functions): accum** ===== Accum -- Compute a running sum of values within a variable ===== **usage: result = accum(varb)** ACCUM calculates a running sum of a data variable's values. The result is a variable of the same size as the input. Each element in the output is the sum of all values up to and including that element in the input variable. For example, if A1 is an array variable containing: a1 = { 1 3 5 7 19 17 13 11 } then accum(a1) would be: { 1 4 9 16 35 52 65 76 } **See Also:**\\ [[jvs:cigal:manual:chapter3:sum|SUM(3)]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter3|Functions List]], [[jvs:cigal:manual:help|Manual Help]]