#

Log, base 2

function log2(x) { return log(x)/log(2) }