how to calculate a negative log?
log (1/a) = -log a means that the logarithm of 1 divided by some number is equal to the negative logarithm of that number. (This is the exactly the opposite of the rule governing exponents where a number raised to a negative number is equal to 1 divided by that number raised to that power.)