dx2x
dx2x(
@dx ## list (required)
@st 0
) -> list
Takes a list of differences—i.e., deltas—and an optional starting value, and returns the cumulative sum between adjacent elements, as a list. Inverse of x2dx
.
Arguments
@dx
[list]: List of differences/deltas. (required)@st
[int/float]: Optional starting value. (default:0
).
Output
Cumulative sum of differences from starting value. [list]
Usage
print(dx2x(3 2 1)) ## 0 3 5 6