Total

Total[list]

gives the total of the elements in list.

Total[list,n]

totals all elements down to level n.

Total[list,{n}]

totals elements at level n.

Total[list,{n1,n2}]

totals elements at levels n1 through n2.

Details and Options

Examples

open all close all

Basic Examples  (1)

Total the values in a list:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Options  (2)

Applications  (3)

Properties & Relations  (2)

Introduced in 2003
(5.0)
|
Updated in 2019
(12.0)