home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / SPECFUN.DI$ / LOG2.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  569 b   |  14 lines

  1. %LOG2    Dissect floating point numbers.   IEEE logb().
  2. %    y = LOG2(x) computes the logarithm base 2 of the elements of x.
  3. %
  4. %    [f,e] = LOG2(x) for a real matrix x, returns a matrix f of real
  5. %    numbers, usually in the range 0.5 <= abs(f) < 1, and a matrix
  6. %    e of integers, so that  x = f .* 2.^e.  Any zeros in x produce
  7. %    f = 0 and e = 0.  This corresponds to the ANSI C function frexp()
  8. %    and the IEEE floating point standard function logb().
  9. %
  10. %    See also POW2, NEXTPOW2, REALMAX, REALMIN.
  11.  
  12. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  13. %    Built-in function.
  14.