Navigation

Operators and Keywords

Function List:

C++ API

Mapping Function: log2 (x)
Mapping Function: [f, e] = log2 (x)

Compute the base-2 logarithm of each element of x.

If called with two output arguments, split x into binary mantissa and exponent so that 1/2 <= abs(f) < 1 and e is an integer. If x = 0, f = e = 0.

See also: pow2, log, log10, exp.

Package: octave