Mathematica 9 is now available

Total

Usage

Total[list] gives the total of the elements in list.
Total[list, n] totals all elements down to level n.


Notes

Total[list] is equivalent to Apply[Plus, list].
Total[f[ ,  , ... ], 1] gives the sum of the  for any head f.
Total is defined so that Total[{{ ,  , ... }, { ,  , ... }, ... }] gives {Total[{ ,  , ... }], Total[{ ,  , ... }]}.
Total[list, Method->"CompensatedSummation"] uses compensated summation to reduce numerical error in the result.
Total works with SparseArray objects.
• See also: Plus, Tr, Mean, Count, Norm, Sum, Max.
• New in Version 5.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.