We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4cc90 commit 8289cffCopy full SHA for 8289cff
MiniPy.py
@@ -23,7 +23,7 @@ def do_cumprod(lst):
23
return toReturn
24
25
if use_logsum:
26
- return [exp(el_log) for el_log in do_cumprod((log(el) for el in lst))]
+ return [exp(el_log) for el_log in cumsum((log(el) for el in lst))]
27
else:
28
return do_cumprod(lst)
29
0 commit comments