rStats.js v1.3.0
    Preparing search index...

    Function cumprod

    • 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.

      Parameters

      Returns number[]

      cumprod([1, 2, 3, 4]); // [1, 2, 6, 24]