product
definite and indefinite product
Product
inert form of product
Calling Sequence
Parameters
Description
Examples
Compatibility
product(f,k)
∏k⁡f
product(f,k=m..n)
∏k=mn⁡f
product(f,k=alpha)
∏k=α⁡f
product(f,k=expr)
∏k=expr⁡f
Product(f,k)
Product(f,k=m..n)
Product(f,k=alpha)
Product(f,k=expr)
f
-
expression
k
name, the product index
m, n
integers or arbitrary expressions
alpha
RootOf
expr
expression not containing k
The product command is for computing symbolic products. It is used to compute a formula for an indefinite or definite product. If a formula cannot be computed, Maple returns the product unevaluated. A typical example would be product(x+k, k=0..n-1) which returns the formula GAMMA(x+n)/GAMMA(x). If you want to multiply a finite sequence of values, rather than compute a formula, use the mul command. For example mul(x+k, k=0..2) returns x*(x+1)*(x+2). Although the product command can be used to compute explicit products, the mul command should be used in programs for explicit products.
You can enter the product command using either the 1-D or 2-D calling sequence. For example, product(x+k, k=0..n-1) is equivalent to ∏k=0n−1⁡x+k.
The call product(f, k) computes the indefinite product of f(k) with respect to k. That is, it computes a formula g such that g(k+1)/g(k) = f(k) for all k.
The call product(f, k = m..n) computes the definite product of f(k) over the given range m..n, that is, it computes f(m) f(m+1) ... f(n). The definite product is equivalent to g(n+1)/g(m) where g is the indefinite product. For example, product(n,n) = product(k, k=1..n-1) = GAMMA(n).
If m = n+1 then the value returned is 1. If m > n+1 then 1/product(f, k=n+1..m-1) is the value returned.
The call product(f, k= alpha) computes the definite product of f(k) over the roots of a polynomial where alpha must be a RootOf.
The call product(f, k= expr) substitutes the value of expr for k in f.
If Maple cannot find a closed form for the product, the function call itself is returned. (The prettyprinter displays the product function using a stylized product sign.)
The capitalized function name Product is the inert product function, which simply returns unevaluated. It appears gray so that it is easily distinguished from a returned product calling sequence.
product⁡k2,k=1..4
576
For a finite sequence of values, use the mul command.
mul⁡k2,k=1..4
product⁡k2,k=1..n
Γ⁡n+12
product⁡k2,k
Γ⁡k2
product⁡ak,k=0..4
a0⁢a1⁢a2⁢a3⁢a4
product⁡ak,k=0..n
∏k=0n⁡ak
Product⁡n+k,k=0..m=product⁡n+k,k=0..m
∏k=0m⁡n+k=Γ⁡n+m+1Γ⁡n
product⁡k⁢x,k=1..5
120⁢x5
product⁡k,k=x..5⁢x
Γ⁡5⁢x+1Γ⁡x
product⁡1k,k=1..∞
0
The product command was updated in Maple 2016; see Advanced Math.
See Also
mul
resultant
sum
Download Help Document