CIGAL Reference Manual, Chapter 3 (Functions): accum
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:
SUM(3)