We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
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 OptionsUse exact arithmetic to total the values:
Use 47-digit precision arithmetic:
Total the columns of a matrix:
Total by adding parts in the first dimension:
Total in the last dimension only:
Total in the last two dimensions:
Total all but the last dimension:
Total the last dimension in a ragged array:
You cannot total in the first dimension because the lists have incompatible lengths:
Total the columns in a sparse matrix:
Total all the elements in all the vectors:
Options (2) Method (1)Use Method->"CompensatedSummation" to reduce accumulated errors in a sum:
Without compensated summation, small errors may accumulate with each term:
Applications (3)Form a polynomial from monomials:
Show that the trace of a matrix is equal to the total of its eigenvalues:
Search for "perfect" numbers equal to the sum of their divisors:
Properties & Relations (2) Wolfram Research (2003), Total, Wolfram Language function, https://reference.wolfram.com/language/ref/Total.html (updated 2019). TextWolfram Research (2003), Total, Wolfram Language function, https://reference.wolfram.com/language/ref/Total.html (updated 2019).
CMSWolfram Language. 2003. "Total." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Total.html.
APAWolfram Language. (2003). Total. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Total.html
BibTeX@misc{reference.wolfram_2025_total, author="Wolfram Research", title="{Total}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Total.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_total, organization={Wolfram Research}, title={Total}, year={2019}, url={https://reference.wolfram.com/language/ref/Total.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4