`log` is typically to the base e, but you use log2. Nevertheless, I would rather use log10 here.