jvs:cigal:manual:chapter3:accum
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:
SUM(3)
jvs/cigal/manual/chapter3/accum.txt · Last modified: 2024/06/21 15:44 by 127.0.0.1