Product
Product[expr, n]
returns the product of n
copies of expr
.
Product[expr, {sym, n}]
returns the product of expr
evaluated with sym
= 1 to n
.
Product[expr, {sym, m, n}]
returns the product of expr
evaluated with sym
= m
to n
.
Attributes[Product] := {HoldAll, Protected, ReadProtected}
Simple examples
In[1]:= Product[a, {a, 1, 5}] Out[1]= 120
In[2]:= Product[f[a], {a, 1, 5}] Out[2]= f[1]*f[2]*f[3]*f[4]*f[5]
In[3]:= Product[a^2, {a, 4}] Out[3]= 576
In[4]:= Product[a + b, {a, 1, 2}, {b, 1, 3}] Out[4]= 1440