This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# Total

 Total[list]gives the total of the elements in list. Totaltotals all elements down to level n. Totaltotals elements at level n. Totaltotals elements at levels through .
• For a 2D array or matrix: »
 Total[list] or Total totals for each column totals for each row overall total of all elements
• Total gives the sum of the for any head f. »
• Total[list, Method->"CompensatedSummation"] uses compensated summation to reduce numerical error in the result. »
Total the values in a list:
Total the values in a list:
 Out[1]=
 Scope   (6)
Use exact arithmetic to total the values:
Use machine arithmetic:
Use 47-digit precision arithmetic:
Total the columns of a matrix:
Total the rows:
Total all the elements:
Total by adding parts in the first dimension:
Total in the last dimension only:
Total in the last two dimensions:
Total all the elements:
Total the last dimension in a ragged array:
Total all the elements:
You cannot total in the first dimension because the lists have incompatible lengths:
Total the columns in a sparse matrix:
Total the rows:
Total several sparse vectors:
Total all the elements in all the vectors: