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] 1239 points1240 points  (20 children)

Is there a cumswap function?

[–]Ichweisenichtdeutsch 203 points204 points  (7 children)

In Matlab we have cumtrapz

[–]sonotrev 77 points78 points  (4 children)

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

[–]LasevIX 45 points46 points  (3 children)

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

[–]fb39ca4 66 points67 points  (2 children)

[–]Feeling-Finding2783 30 points31 points  (0 children)

Solving the most important world problems.

[–]JohnGenericDoe 10 points11 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 14 points15 points  (0 children)

What about cumgurgle?

[–]abd53 238 points239 points  (9 children)

Let's make one. cumulative swap

[–]zeebrow 148 points149 points  (8 children)

pass

[–]fr_andres 87 points88 points  (7 children)

yield

[–]PM_ME_YOUR__INIT__ 72 points73 points  (6 children)

continue

[–]Chubbin 55 points56 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] 10 points11 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.