module MoreMath::Functions

def logb(x, b = 2)

2, binary logarithm.
Returns the base +b+ logarithm of the number +x+. +b+ defaults to base
def logb(x, b = 2)
  Math.log(x) / Math.log(b)
end