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

  1. %POW2    Scale floating point numbers.  IEEE scalbn().
  2. %
  3. %    x = pow2(y) computes 2 to the power y.
  4. %
  5. %    x = pow2(f,e) for a real matrix f and a matrix of integers e
  6. %    computes x = f .* (2 .^ e).  The result is computed quickly
  7. %    by simply adding e to the floating point exponent of f.
  8. %    This corresponds to the ANSI C function ldexp() and the IEEE
  9. %    floating point standard function scalbn().
  10. %
  11. %    See also LOG2, REALMAX, REALMIN.
  12.  
  13. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  14. %    Built-in function.
  15.