Product
Product(expr, {i, imin, imax})evaluates the discrete product of
exprwithiranging fromimintoimax.
Product(expr, {i, imin, imax, di})
iranges fromimintoimaxin steps ofdi.
Product(expr, {i, imin, imax}, {j, jmin, jmax}, ...)evaluates
expras a multiple sum, with{i, ...}, {j, ...}, ...being in outermost-to-innermost order.
See
Examples
>> Product(k, {k, 1, 10})3628800
>> 10!3628800
>> Product(x^k, {k, 2, 20, 2})x^110
>> Product(2 ^ i, {i, 1, n})2^(1/2*n*(1+n))Symbolic products involving the factorial are evaluated:
>> Product(k, {k, 3, n})n! / 2Evaluate the nth primorial:
>> primorial(0) = 1;>> primorial(n_Integer) := Product(Prime(k), {k, 1, n});>> primorial(12)7420738134810Implementation status
- ☑ - partially implemented