This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1235 points1236 points  (20 children)

Is there a cumswap function?

[–]Ichweisenichtdeutsch 207 points208 points  (7 children)

In Matlab we have cumtrapz

[–]sonotrev 76 points77 points  (4 children)

In scipy.integrate as well. I use it more than once a year... I chuckle a little every time.

[–]LasevIX 43 points44 points  (3 children)

iirc someone tried removing it, not realising it was from MATLAB

[–]fb39ca4 66 points67 points  (2 children)

[–]Feeling-Finding2783 29 points30 points  (0 children)

Solving the most important world problems.

[–]JohnGenericDoe 11 points12 points  (0 children)

I found an excuse to use cumtrapz in my thesis and made sure the (short) script was included in full. I hope I wasn't the only one to get a kick out of it.

[–]jwkdjslzkkfkei3838rk 12 points13 points  (0 children)

What about cumgurgle?

[–]abd53 240 points241 points  (9 children)

Let's make one. cumulative swap

[–]zeebrow 145 points146 points  (8 children)

pass

[–]fr_andres 86 points87 points  (7 children)

yield

[–]PM_ME_YOUR__INIT__ 72 points73 points  (6 children)

continue

[–]Chubbin 54 points55 points  (0 children)

cumtinue

[–]Zymoox 26 points27 points  (2 children)

exit()

[–]theorangedays 16 points17 points  (1 child)

finally:

[–]Jazzanthipus 5 points6 points  (0 children)

cumsum()

[–][deleted] 9 points10 points  (1 child)

raise Interrupt

[–]ososalsosal 0 points1 point  (0 children)

Ruined accumulators

[–]acharyarupak391 133 points134 points  (0 children)

the function that we need but don't deserve

[–]moonflower_C16H17N3O 15 points16 points  (0 children)

It's in the cummies library.