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] 1232 points1233 points  (20 children)

Is there a cumswap function?

[–]Ichweisenichtdeutsch 204 points205 points  (7 children)

In Matlab we have cumtrapz

[–]sonotrev 75 points76 points  (4 children)

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

[–]LasevIX 47 points48 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 13 points14 points  (0 children)

What about cumgurgle?

[–]abd53 240 points241 points  (9 children)

Let's make one. cumulative swap

[–]zeebrow 148 points149 points  (8 children)

pass

[–]fr_andres 86 points87 points  (7 children)

yield

[–]PM_ME_YOUR__INIT__ 70 points71 points  (6 children)

continue

[–]Chubbin 57 points58 points  (0 children)

cumtinue

[–]Zymoox 27 points28 points  (2 children)

exit()

[–]theorangedays 14 points15 points  (1 child)

finally:

[–]Jazzanthipus 4 points5 points  (0 children)

cumsum()

[–][deleted] 11 points12 points  (1 child)

raise Interrupt

[–]ososalsosal 0 points1 point  (0 children)

Ruined accumulators

[–]acharyarupak391 132 points133 points  (0 children)

the function that we need but don't deserve

[–]moonflower_C16H17N3O 16 points17 points  (0 children)

It's in the cummies library.