Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Arrays, Vectors, and Subscripts

SUM(x[i!]) SUMmation over Subscript Range

Scroll Prev Top Next More

The sum of an array over the Subscript Range(s) with exclamation ! mark(s).

 

Units:SUM(unit) --> unit (output has same units as the input)

Examples

SUM (x[i!]) is equal to x[one] + x[two] +...+x[n].

SUM (x[i,j!] * A[j!] ) is equal to  ( x[i,one]*A[1] ) + 
                          ( x[i,two]*A[two] ) + ... +
                          ( x[i,n]*A[n] ).
SUM (x[i!,j!] is equal to x[one,one] + x[one,two] +...+ x[one,m] +
                    x[two,one] + x[two,two] +...+ x[two,m] +
                    ...  + ... + ...
                    x[n,one] + x[n,two] +...+ x[n,m].
SUM (x[i!,j]*y[i!]) is equal to x[one,j]*y[one] + x[two,j]*y[two] 
                        + ... +  x[n,j]*y[n].

Availability: Professional and DSS only.

See also: PROD, VECTOR SELECT, VMIN and VMAX.

Sample model: SUM.mdl in FunctionExamples