comparison scripts/specfun/log2.m @ 7385:8b7b4f58199f

[project @ 2008-01-15 20:49:09 by jwe]
author jwe
date Tue, 15 Jan 2008 20:49:10 +0000
parents a1dbe9d80eee
children 8a6965a01176
comparison
equal deleted inserted replaced
7384:47c919254791 7385:8b7b4f58199f
57 error ("log2 takes at most 2 output arguments"); 57 error ("log2 takes at most 2 output arguments");
58 endif 58 endif
59 59
60 endfunction 60 endfunction
61 61
62 %!assert(all (abs (log2 ([1/4, 1/2, 1, 2, 4]) - [-2, -1, 0, 1, 2]) < sqrt (eps)));
63
64 %!error log2 ();
65
66 %!error log2 (1, 2);
67