See also 5.38.31, 5.43.6 and 5.43.8).
product(expr,var,a,b,p) or mul(expr,var,a,b,p) returns the
product of values of an expression ex when the variable var goes
from a to b with a step p (by default p=1) : this syntax is
for compatibility with Maple.
Input :
^
2+1,x,1,4)or:
^
2+1,x,1,4)Output :
Indeed 2*5*10*17=1700
Input :
^
2+1,x,1,5,2)or:
^
2+1,x,1,5,2)Output :
Indeed 2*10*26=520
product or mul takes as argument a list l of reals (or floating numbers) or two lists of the same size (see also 5.38.31, 5.43.6 and 5.43.8).