log(x) -x*------ - (1 - x)*log(1 - x, 2) log(2)
(-x)*(log(x)/log(2)) - (1 - x)*log(1 - x, 2)
1 -1 + x log(x) - ------ - ------ - ------ + log(1 - x, 2) log(2) 1 - x log(2)
1 1 ------ - -------- -1 + x x*log(2)
1 1 - --------- + --------- 2 2 (-1 + x) x *log(2)