Sum and product of an array: Difference between revisions

Line 1,667:
prod(i=1,#v,v[i])
};</lang>
 
{{works with|PARI/GP|2.10.0+}}
In 2.10.0 the function <code>vecprod</code> was introduced as well. Like <code>factorback</code> it gives the product of the elements of an array but unlike <code>factorback</code> it doesn't handle factorization matrices.
 
=={{header|Pascal}}==