prod - Maple Help

MTM

 prod
 product

 Calling Sequence prod(M, dimension)

Parameters

 M - matrix, vector, or array dimension - 1 or 2

Description

 • The prod(M) function computes the product of elements in M.
 • The prod(M) or prod(M,1) creates a row vector of column products of the matrix.
 • The prod(M,2) creates a column vector of row products of the matrix.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=12{x}^{2}{y}^{3}\right):$
 > $\mathrm{prod}\left(M,1\right)$
 $\left[\begin{array}{ccc}{144}{}{{x}}^{{4}}{}{{y}}^{{6}}& {144}{}{{x}}^{{4}}{}{{y}}^{{6}}& {144}{}{{x}}^{{4}}{}{{y}}^{{6}}\end{array}\right]$ (1)