Sum and product of an array: Difference between revisions
Content added Content deleted
(→{{header|PARI/GP}}: 2.10.0) |
|||
Line 1,667: | Line 1,667: | ||
prod(i=1,#v,v[i]) |
prod(i=1,#v,v[i]) |
||
};</lang> |
};</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}}== |
=={{header|Pascal}}== |