Running products. Equivalent to R's cumprod(). Products beyond the double range show as ±Infinity with the right sign, as R's long double accumulator does.
cumprod()
cumprod([1, 2, 3, 4]); // [1, 2, 6, 24] Copy
cumprod([1, 2, 3, 4]); // [1, 2, 6, 24]
Running products. Equivalent to R's
cumprod(). Products beyond the double range show as ±Infinity with the right sign, as R's long double accumulator does.