Dan Piponi on Nostr: Non-mathematicians have a peculiar idea of what constitutes a "valid" mathematical ...
Non-mathematicians have a peculiar idea of what constitutes a "valid" mathematical operation. Eg. I've been asked a few times how you turn a definition like:
f(n) = -1 if n is odd
f(n) = 1 if n is even
into a formula, as if somehow (-1)^n is more valid.
Anyway, here's a quine I wrote years ago because of someone objecting that a quine wasn't a "real" quine if it had loops or conditionals in it. Of course I could also eliminate that i++ but honestly, they kept coming up with objections one after another and I eventually got bored.
https://gist.github.com/dpiponi/8e71ed67831f84cdfc37a652a7b1cea6
f(n) = -1 if n is odd
f(n) = 1 if n is even
into a formula, as if somehow (-1)^n is more valid.
Anyway, here's a quine I wrote years ago because of someone objecting that a quine wasn't a "real" quine if it had loops or conditionals in it. Of course I could also eliminate that i++ but honestly, they kept coming up with objections one after another and I eventually got bored.
https://gist.github.com/dpiponi/8e71ed67831f84cdfc37a652a7b1cea6