logoalt Hacker News

dmitrygrtoday at 5:20 PM1 replyview on HN

  > you can compute any logarithm from two base-e ones.
They need not be base e. Any base will do as long as it is the same for both the numerator and the denominator

Replies

purplesyringatoday at 7:01 PM

Yeah, I simplified it a little. Though I must say I'm surprised pretty much every library I looked at uses the natural logarithm specifically, and not log2, which would seemingly be easier to compute with floats. Does anyone here know why, by any chance?

show 2 replies