Next: logic Up: MacAnova Help File Previous: log10()   Contents

log2()

Usage:
log2(x), x REAL or a structure with REAL components



Keywords: transformations
log2(x) returns base 2 log logarithm of the elements of x, when x is a
REAL scalar, vector, matrix or array.  The result has the same shape as
x.

If any element of x is MISSING, so is the corresponding element of
log2(x).  If any element of x <= 0, the corresonding element of
log2(x) is MISSING.  In both cases a warning message is printed.

When x is a structure, all of whose non-structure components are REAL,
log2(x) is a structure of the same shape and with the same component
names as x, with each non-structure component transformed by log2().

See topic 'transformations' for more information on log2().


Gary Oehlert 2003-01-15