ListTools
PartialSums
return the partial sums of a list
Calling Sequence
Parameters
Description
Examples
PartialSums(L)
L
-
list
The PartialSums(L) function returns a list of partial sums of the elements in list L.
with⁡ListTools:
PartialSums⁡a,b,c
a,a+b,a+b+c
L≔1,2,3,4,5,6,7,8,9,10
PartialSums⁡L
1,3,6,10,15,21,28,36,45,55
Digits≔2
PartialSums⁡seq⁡sin⁡1.0⁢i,i=0..13
0.,0.84,1.8,1.9,1.1,0.14,−0.14,0.52,1.5,1.9,1.4,0.4,−0.14,0.28
See Also
inline
type[list]
Download Help Document