Mercurial > octave
view CITATION @ 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 | 59fafbc9fbf7 |
children | 1eef836d8d06 |
line wrap: on
line source
To cite GNU Octave in publications use: John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2018). GNU Octave version 4.2.2 manual: a high-level interactive language for numerical computations. URL https://www.gnu.org/software/octave/doc/v4.2.2/ A BibTeX entry for LaTeX users is: @manual{, title = {{GNU Octave} version 4.2.2 manual: a high-level interactive language for numerical computations}, author = {John W. Eaton and David Bateman and S{\o}ren Hauberg and Rik Wehbring}, year = {2018}, url = {https://www.gnu.org/software/octave/doc/v4.2.2/}, } We have invested a lot of time and effort in creating GNU Octave, please cite it when using it. See also `citation pkgname' for citing Octave packages.