Total
The sum of the elements of a list; a matrix totals column by column.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Total✓Total(list) for the elements of .SageMath
sum(list)Typed signatures
| Type | Package | Applies |
|---|---|---|
(collection<any>) -> any | combinatorics | always |
Details
- Wolfram's levels and
Methodarguments are not implemented.
Examples
About
| Examples | 3 |
|---|---|
| Checked against | Wolfram Language 3 agreeSageMath 2 agree1 errormathlib4 1 agree1 error |
| Crosswalk | Wolfram LanguageSageMath |
Implementation
mapped
mathlib4packages/oracle/src/mappings.tsThe sum of a list of numbers, 0 for the empty list; a matrix (ours totals column by column) fails to elaborate, since lists do not add.
mapped
sagepackages/oracle/src/mappings.ts