Mercurial > octave
view .hgsub @ 25236:69b21b8a0e9f
nextpow2.m: Compute value correctly for Inf or NaN inputs (bug #53463).
* nextpow2.m: Change docstring to define the output variable N.
Check for failure of 2-input form of log2 function by looking for
an exponent of 0. If found, copy over the value that log2 was
not able to process (e.g., Inf or NaN). Add BIST tests for
special cases. Add fail pattern to %!error test.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 12 Apr 2018 14:34:10 -0700 |
parents | b940e457e11f |
children | b116ea5a8d73 |