|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |

Calculates cumulative sums of a list or of the columns of a matrix.
cumSum(list or matrix)
Press:
- 2nd [MATH] to access the math menu.
- 3 to access the list submenu, or use arrows.
- 7 to select cumSum(), or use arrows.
Alternatively, type cumSum( with the keyboard.
TI-89/92/+/v200
7 bytes
cumSum( calculates the cumulative sums of a list, or of the columns of a matrix, and outputs them in a new list or matrix variable.
For a list, this means that the Nth element of the result is the sum of the first N elements of the list, and the N-1th element of the result is the sum of the first N-1 elements, and so on:
cumSum({1,3,5,7,9})
{1 4 9 16 25}For a matrix, cumSum( is applied to each column in the same way as it would be for a list (but numbers in different columns are never added):
cumSum([[0,1,1][0,1,3][0,1,5][0,1,7]])
[[0 1 1]
[0 2 4]
[0 3 9]
[0 4 16]]Advanced Uses
For a matrix, if you want to sum up the rows instead of the columns, use the T (transpose) command.
(cumSum([[0,1,1][0,1,3][0,1,5][0,1,7]]ᵀ))ᵀ
[[0 1 2]
[0 1 4]
[0 1 6]
[0 1 8]]Related Commands
- T (transpose)