<< log1p | Elementary functions | logspace >> |
R = log2(M) |
[F, E] = log2(M) |
a variable: a matrix
result of log2: computes the base 2 logarithm of the elements of X.
Mantissa values that satisfy this equation: M= F.*2.^E
Exponent values that satisfy this equation: M= F.*2.^E
log2 dissects several numbers into the exponent and mantissa.
[F, E] = log2(M), any zeros in M produce F = 0 and E = 0.
Input values of Inf, -Inf, or NaN are returned unchanged in F with a corresponding exponent of E = 0.
x = [1+i,-i;i,2i];
R = log2(x)
[F, E] = log2(x)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET