34 karma · joined Apr 14, 2022 (4y ago) · 5 submissions
comment 2y ago · link · parent
I generally agree with your overall sentiment, but I think it's important to note that the behavior is _not_ special handling; it's just the normal `repr` behavior at the REPL, where `exit` is an object like any other, and `repr(exit)` is that message.
comment 3y ago · link · parent
comment 3y ago · link · parent
floor(x/2) = 0 on the interval [0, 2), so the expression reduces to x/2.
> And how does the graph of x/2 - floor(x/2) imply anything about the behavior of e^(x/2 - floor(x/2))?
If y = x/2 - floor(x/2) is periodic, then e^y = e^(x/2 - floor(x/2)) must be periodic as well, with the same period.