log2y
log2y is the logarithm of y with base 2. It is the exponent to which 2 must be raised to obtain y.
Defined for y > 0, log2 1 = 0 and log2 2 = 1. It satisfies log2(yz) = log2 y
The function is the inverse of the exponential function 2^x. Its range is all real numbers, while
The derivative is d/dy log2 y = 1/(y ln 2), which is positive for y > 0, so log2
Applications and significance: log base 2 is common in computer science and information theory because doubling
Common pitfalls include taking the logarithm of non-positive values, confusing bases (for example, using base 10