log2 - Maple Help

MTM

 log2
 compute the base-2 logarithm

 Calling Sequence log2(M)

Parameters

 M - array, matrix, vector, or scalar

Description

 • The log2(M) function computes the element-wise base-2 logarithm of M.  The result, R, is formed as R[i,j] = log2(M[i,j]).

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(\left[\left[0.3,0.2\right],\left[0.1,0.4\right]\right]\right):$
 > $\mathrm{log2}\left(M\right)$
 $\left[\begin{array}{cc}{-1.736965594}& {-2.321928095}\\ {-3.321928095}& {-1.321928095}\end{array}\right]$ (1)