|
Contents | Previous | Next | Subchapters |
| Syntax |
f = log2(x) |
[f,e] = log2(x) | |
| See Also | exp , log10 , log |
f
x = 2
If any of the elements of x are negative,
f is a complex matrix.
Otherwise f has the same type as x.
e
Re[x] = f * 2
where Re[x] denotes the
real part
of x,
f is a fraction in the interval [.5, 1.)
and e is equal to an integer.
If f is a complex matrix, f and e
are double-precision matrices.
Otherwise f and e have the same type as x.
log2(4.)
returns
2
If you enter
[f, e] = log2( [1, 2, 3, 4] )
{f , e}
O-Matrix will reply
{
[ .5 , .5, .5 ]
[ 1 , 2 , 2 , 3 ]
}