HackerTrans
TopNewTrendsCommentsPastAskShowJobs

monoprotic

no profile record

comments

monoprotic
·3년 전·discuss
There has been discussion of this change a few times, e.g. https://bugs.python.org/issue44603

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.
monoprotic
·3년 전·discuss
In that example, your arms are still rotating about an axis. The moment of inertia of the rotating body increases, so the angular velocity decreases. Imagine instead that the ejected material is no longer rotating about an axis (say, you detached your arms and flung them away in a straight line); the moment of inertia of the remaining rotating body _decreases_, so the angular velocity increases.
monoprotic
·3년 전·discuss
> Why would the exponent be equal to x/2 - floor(x/2) be equal to x/2 on the interval [0, 2)?

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.
monoprotic
·4년 전·discuss
The pictures in the article really aren't doing the display any favors. I own a Tidbyt and the contrast is way better than it appears here, and the brightness is adjustable (with an API call if you want!) with a pretty high max setting.
monoprotic
·4년 전·discuss
You're entitled to a deduction of up to $300 (or $600 if married and filing jointly) for charitable donations even if you take the standard deduction.