Calculate the base-2 logarithm of each element in an array.
> log2([1, 2, 4, 8])[0, 1, 2, 3] Copy
> log2([1, 2, 4, 8])[0, 1, 2, 3]
The array of numbers.
An array with the base-2 logarithm of each input element.
Calculate the base-2 logarithm of each element in an array.
Example