Elektrine lite

โ† Feed

@jupiter@mastodon.gamedev.place

Post #2114068

2026-05-06 16:25 UTC

@shana Please tell mathematicians to write fewer infinite loops -.-

Replies (2)

  • @jupiter for (sum=0, k=0;;k++) sum+=pow(a*r,k) Now if you had left the starting index out of the notation, that would have been a stumper ๐Ÿ˜œ

    Open ##2114069

  • @barubary@infosec.exchange 2026-05-07 12:15

    @jupiter@mastodon.gamedev.place @shana@mastodon.gamedev.place This one still half applies, I think. I see "sigma(n=0)(โˆž)" as syntactic sugar for "lim(uโ†’โˆž) sigma(n=0)(u)". So the inner sigma itself still works as a for-loop (separately, for each value of u), but obviously you can't solve the limit by just iterating hard enough and that's where it breaks down.

    Open ##2176859