CSC 343: The Week beginning Oct. 22 |
Math.log2(x)
to obtain the log base 2 of a number. A check on your
results is that the information entropy is less than or equal to the information capacity
which in this case is log2 (26) = 4.70044 bits/letter