Please enable JavaScript to view this site.

Vensim Help

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

PROD(x[i!]) PRODuct of Subscript Range

Scroll Prev Top Next More

Returns the product of an array over the Subscript Range(s) marked with the exclamation ! mark(s).

 

Units:PROD(dimensionless) --> dimensionless (the argument must be dimensionless)

Examples

PROD (x[i!]) is equal to x[one] * x[two] *...* x[n]

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

Availability: Only Professional and DSS.

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

Sample model: PROD.mdl in FunctionExamples