Mercurial > hg > octave-nkf
diff libinterp/corefcn/data.cc @ 19041:9d185537e5d1 stable
* data.cc: New test for log2 (bug #42583).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 Jun 2014 20:08:37 -0400 |
parents | 53af80da6781 |
children | 589354cf668f 23681c9ea7ba |
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc +++ b/libinterp/corefcn/data.cc @@ -568,6 +568,9 @@ %! [f, e] = log2 (complex (zeros (3, 2), [0,-1; 2,-4; Inf,-Inf])); %! assert (f, complex (zeros (3, 2), [0,-0.5; 0.5,-0.5; Inf,-Inf])); %! assert (e(1:2,:), [0,1; 2,3]); + +# bug #42583 +%!assert (all (log2 (pow2 (-1074:1023)) == -1074:1023)) */ DEFUN (rem, args, ,