by fagnerbrack on 11/19/24, 9:01 PM with 12 comments
by shireboy on 11/19/24, 11:44 PM
by joeframbach on 11/21/24, 3:34 PM
2. Exponentiation implementation depends on the size of the power. For very small powers normally they are represented as their reciprocal, then operated on within the exponent.
y = b ** (1/x)
for very large x is rewritten as y = Math.exp(Math.log(b) / x)
by Rendello on 11/19/24, 11:09 PM
I recently learned the syntax for half-open intervals. It's so frustrating that I can't bear to type it out. This is relevant: https://xkcd.com/859/
by sxp on 11/19/24, 11:21 PM