@jupiter@mastodon.gamedev.place
Post #2114068
2026-05-06 16:25 UTC
@shana Please tell mathematicians to write fewer infinite loops -.-
Replies (2)
-
@shana@mastodon.gamedev.place 2026-05-06 16:32
@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 ๐
-
@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.