dr2r
dr2r(
@dr ## list (required)
@st 1
) -> list
Takes a list of ratios and an optional starting value, and returns the cumulative multiplication between adjacent elements, as a list. Inverse of r2dr
.
Arguments
@dr
[list]: List of ratios. (required)@st
[int/float]: Starting value (default:1
).
Output
Cumulative multiplication between adjacent elements. [list]
Usage
print(dr2r(4 3 2 1)) ## 1 4 12 24 24