3 ms·
Good find, but I'm curious if anyone is ever sweeping the base of the logarithm in real life.
by eternauta3k 2mo ago
Good find, but I'm curious if anyone is ever sweeping the base of the logarithm in real life.
- purplesyringa 2mo agoI sort of needed to do that. I needed to compress data with an approximately geometric distribution, and as part of that process I needed to invert its CDF, which is `CDF = 1 - (1 - p)^x`. That translates to `x = log_(1 - p) (1 - CDF)`, which is variable over both the argument and the base. At that point I wondered how consistent the implementation of double-argument `log` is, since the encoder and the decoder need to agree about it, which led to this article.