Previous Up Next

6.45.4  Addition of elements of a column of a matrix: sum

The sum command (see also Section 6.20.3) can add the elements of the columns of a matrix.


Example.
Input:

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

Output:


4,6

Previous Up Next