log2(value)

Base 2 logarithm.

log2(4)
valueThe input.
return valueThe base 2 logarithm of the input.

The natural logarithm is 2 based.

The input can be any real number, complex number, or matrix. In case of matrices, the result is computed elmentwise.

Quantities are not compatible with this function.