👩💻 Join our community of thousands of amazing developers!
I’ve written before about three simple approximations for logarithms, for base 10 log10(x) ≈ (x – 1)/(x + 1) base e, loge(x) ≈ 2(x – 1)/(x + 1) and base 2 log2(x) ≈ 3(x – 1)/(x + 1). These can be used to mentally approximate logarithms to moderate accuracy, accurate enough for quick estimates. Here’s […] The post Logarithm approximation curiosity first appeared on John D. Cook....