Skip to content

log2

Logarithm of base 2

log2(A)

  • A should be an array of non-negative numbers.
  • It returns an array containing the base-2 logarithm of each element of A.
  • The output has the same size as A.