Sum of elements.
args | List of numbers, vectors, and/or matrices. |
return value | The recursive sum of the arguments. |
The argument can be a list of numbers, a vector, or a matrix. If there is a list of matrices or vectors, the sums are calculated separately for each of them, and the sum of results will be returned.
sum(1,[2,3])