4 ms·
https://github.com/dateutil/dateutil/blob/master/dateutil/easter.py https://github.com/dateutil/dateutil/blob/master/dateutil/ea...
by ericfrederich 9y ago
https://github.com/dateutil/dateutil/blob/master/dateutil/easter.py https://github.com/dateutil/dateutil/blob/master/dateutil/ea...
- wyager 9y agoWhat's the embedding for division and modulation into systems of gears? I imagine it's somewhat expensive.
- a_c 9y agosome miniature version of this perhaps https://www.youtube.com/watch?v=wwh0KH-ICCw https://www.youtube.com/watch?v=wwh0KH-ICCw
- Someone 9y agoMultiplying angular velocity by a constant is easier than adding a constant angular velocity. To multiply by m, use two gears with diameters in ratio m:1. To divide, switch the gears. I wouldn't even know how to subtract a constant angular velocity. I don't think you need that, though; if you know at what speed all your gears will rotate, a constant addition/change can be replaced by a constant multiplication/division: a+b = a * (a+b)/a
- pavel_lishin 9y agoIf the angular velocity doesn't have to be constant, could you skip gears?
- thechao 9y agoDifferentials have the property of being universal angular velocity adder/subtractors at fixed ratios. output := K * (input0 + input1) / 2 Spur-gear differentials are suitable for watches.
- a_c 9y agoWow! I didn't know if not (1 <= method <= 3) is supported syntax! I would always use method >= 1 and method <= 3
- Avshalom 9y agoI seem to remember an article once on how the associativity in cases like this not always lining up with what you think/want so be careful with it.
- ericfrederich 9y agohttps://docs.python.org/3/reference/expressions.html#comparisons https://docs.python.org/3/reference/expressions.html#compari... It's one of those things I probably wouldn't want to use. Like the 'else' clause of a for loop is useful sometimes, but when you use every single feature of a language it makes it harder for newcomers to read.
- scott_karana 9y agoI agree with your principal, but 1<x<9 is bog-standard high school algebra. ;)
- deleted 9y ago[deleted]