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

### 5.45.6 Multiplication of elements of each column of a matrix: product

The product command can multiply the elements of the columns of a matrix (see Section 5.40.28 for other things product can do).

- product takes one argument:
  A, a matrix.
- product(A) returns the list whose elements are the product of the elements of each column of the matrix A.

#### Example.

Input:

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

Output:

⎡ ⎣ | 3,8 | ⎤ ⎦