Anonymous user
Sum and product of an array: Difference between revisions
→{{header|PARI/GP}}: 2.10.0
(→{{header|PARI/GP}}: 2.10.0) |
|||
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}}==
|