The Rules for Logarithms