Previous Up Next

5.49.6  Multiplication of elements of each column of a matrix: product

product takes as argument a matrix A.
product returns the list whose elements are the product of the elements of each column of the matrix A (see also 5.43.35 and 5.49.8).
Input:

product([[1,2],[3,4]])

Output:

[3,8]

Previous Up Next