Category "logarithm"

semi-log scale linear regression [Gnuplot]

I have an experimental data set that I linearize on a semi-log scale and of which I want to run a linear regression. The problem is that when I set a line as a

How to calculate integer logarithm of base 3, using fast bit operations?

Calculating of integer logarithm base 2 is pretty easy in near any computer language - you just find the largest '1' in binary representation, and rest becomes

Working with small probabilities, via logs

Source: Google Code Jam. https://code.google.com/codejam/contest/10224486/dashboard#s=a&a=1 We're asked to calculate Prob(K successes from N trials) where